To establish a PLC to PLC communication add a Modbus device into the desired network (NOC or PLC) and then:
- Assign the IP address of the device in the "Address Setting" tab
- Assign the Read and Write memory addresses in the "Request Setting" tab (Note to the Last Value setting: Set to Zero, in order to reset the values in case of communication fault).
NOTES: - Change the Unit ID from 255 to 1 - Ensure the IP Address of the Source in the Channel Properties is in the correct subnet
- In the Request 001 click on "Define Item(s)" and rename the variables to "READ_M340_*", the "*" will then be incremented automatically. Do the same for "WRITE_M340_*".
- After rebuilding the project, the tags will be automatically created and to slice these new tags by: Read_Bit_0 := M340.Inputs.READ_M340_0.0;
No comments:
Post a Comment