on 09-08-2017 7:19 AM
Hi All,
I am trying to use the new PCo TagFixedQuery Mode in order to open a TCP Socket connection with a TCP Server program. I am using the below function. I hope other parameters of the START function are optional.
CALL START(address='xx.xx.x.159',PORT='8888');
I am getting the below error. Can anyone help on this?
Exception occured while trying to call 'START' [Cause: System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.String.System.IConvertible.ToInt32(IFormatProvider provider) at System.Convert.ToInt32(Object value) at SAP.Manufacturing.Connectivity.SocketAgent.StartPort(Dictionary`2 inputParams)]
Thanks in advance
Shaji
Hello Shahji,
Were you able to fix this issue? I'm facing the same issue and would appreciate if you could share your findings.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ruchika,
I dont know if the original posters issue was resolved but as the error message says, the command is not in the correct format. Here is the documentation for the command.
START(byte conversionType, string address, string port, string ewmstartchar, string plcstartchar, string terminator, string length, string plcendchar ) o Opens a new connection by IPV4 address and port o conversionType is 0=Byte, 1=UTF-8, 2=UTF16=2 o ewmstartchar, plcstartchar, plcendchar are either ASCII or escaped control characters (i.e., \\02 for STX, etc.). These characters are only used in conjunction with SAP EWM integration o set either terminator or length, not both; control terminators are escaped (ex: \\0D\\0A) o use empty string for unassigned parameters) o returns 0 for success, non-zero for error
Hope this helps
Kevin
User | Count |
---|---|
11 | |
6 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.