IF (fbCanReceive.Active AND fbCanReceive.NewDataValid) THEN
CASE fbCanReceive.ReceivedFrame.ID OF
16#18A:
Sensor10.Axis_X16 := BYTE_TO_DINT(fbCanReceive.ReceivedFrame.Data[0]) +
SHL(BYTE_TO_DINT(fbCanReceive.ReceivedFrame.Data[1]), 8);
Sensor10.Axis_Y16 := BYTE_TO_DINT(fbCanReceive.ReceivedFrame.Data[2]) +
SHL(BYTE_TO_DINT(fbCanReceive.ReceivedFrame.Data[3]), 8);
The active is false and the busy is blinking true/ false. and StatusIs is -1070584145.
1-I used the sensor node ID for both PLCs but as I said I could not get the data by PLC2.
2-I did another test I just used EDS file for both PLCs and without any code just by HW configuration, both PLCs listen to the bus and getting data from sensor surprisingly!!!
I wanted to share with you, apparently when a sensor is putting data on the bus no need to write the codes just by IO mapping you can read the data!