I'm communicating from my application with PLC controller over Network Variables.
It works fine when I'm setting single variable, but I have problem when I want set 4 variables
BOOL,BYTE,BYTE,BYTE
My telegram looks like this:
00 2d 53 33 00 00 00 00 01 00 5f 00 04 00 18 00 30 00 00 00 01 64 64 64
cob_id = 1
position of first variable= 5f (95)
num of variables = 4
length (header & data) = 18 (24)
counter = 30 (48)
payload = 01 64 64 64 (TRUE,100,100,100)
After I send this telegram, there is no answer and in NetVarPDO_RX_Diagnosis_UDP on position 95 there is error:
NetVarUDPError_Layout
What am I doing wrong?
How can I change 4 variables with one telegram?
Not Possible and I need to send 4 telegrams, one for each variable ?
Or use "Pack variables" and send all variables always?
Best Regards
Marek
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I'm communicating from my application with PLC controller over Network Variables.
It works fine when I'm setting single variable, but I have problem when I want set 4 variables
BOOL,BYTE,BYTE,BYTE
My telegram looks like this:
00 2d 53 33 00 00 00 00 01 00 5f 00 04 00 18 00 30 00 00 00 01 64 64 64
cob_id = 1
position of first variable= 5f (95)
num of variables = 4
length (header & data) = 18 (24)
counter = 30 (48)
payload = 01 64 64 64 (TRUE,100,100,100)
After I send this telegram, there is no answer and in NetVarPDO_RX_Diagnosis_UDP on position 95 there is error:
NetVarUDPError_Layout
What am I doing wrong?
How can I change 4 variables with one telegram?
Not Possible and I need to send 4 telegrams, one for each variable ?
Or use "Pack variables" and send all variables always?
Best Regards
Marek