Table E-10 MBUS_TCP_SLAVE instruction
Parameter
Mode
Port
Unit
Delay
Inputs
InputSize
Outputs
OutputSize
Done
Error
F
Operation instructions in CODESYS
F.1
Add device
C06/C07 series controller can be used for CANopen, EtherCAT, Modubs_TCP/RTU
communication on CODESYS. Modbus communication can be realized by programming Modbus
instruction library (refer to "Appendix SMB_MODBUS Library Usage introduction"). For
CANopen and EtherCAT communication, communication devices need to be added in the
CODESYS device view to carry out specified communication. For details about how to add
CANopen and EtherCAT communication devices, see the following description.
1、Add CANopen communication devices to CODESYS
1)Add CANbus
Right-click "Device(MAT LC-C06)" in the Device view and choose "Add Device" to add CANbus
in the dialog box that pops up: select "< All Suppliers" for supplier and "CANbus" for field bus as
CANbus.
Description
Enable switch
0:OFF
1:ON
Salve port number,eg:502
Slave unit number,eg:0
Reply delay time (generally set to 0. If other
communication parameters are correct but
communication still fails, increase the value
appropriately)
Pointer to Input Register
Input Register size
Pointer to Holding Register
Holding Register size
Done bit
0: Instruction is being executed
1: Instruction is completed
Error code
135
Data type
BOOL
WORD
BYTE
INT
POINTER TO WORD
UINT
POINTER TO WORD
UINT
BOOL
BYTE
Initializ
ation
1
502
0
0
0
0
0
0
0
0
Need help?
Do you have a question about the MAT-LC-C Series and is the answer not in the manual?