
—
Programing with CODESYS
—
CPSN-PCB271-S1-041 Reference Manual (Software)
—
91
—
5.
Create a Project
Register the information to be mapped to the CODESYS variables from the Modbus register of the
slave device. Each channel lists one Modbus command.
Here, Modbus register of Slave device is registered as follows:
Channel
Function Code
Address
Data
I/O Module
0
Read Discrete Inputs (Code 2)
0 to 7
Digital input bit 0 to 7
CPSN-DI-08BL
1
Write Single Coil (Code 5)
0
Digital output bit 0
CPSN-DO-08BL
2
1
Digital output bit 1
1
On the Devices window, double click the Modbus Slave device icon to open Device
Configuration window.
2
Open [Modbus Slave Channel] tab.
3
Click [Add Channel] button.
Select [Read Discrete Inputs (Function Code 2)] from Access Type, enter "0" in Offset of READ
Register and "8" in Length, then click [OK].
Summary of Contents for CONPROSYS nano CPSN-PCB271-S1-041
Page 21: ...21 CONPROSYS nano WEB Setting This section describes the product system and functions...
Page 49: ...49 CODESYS Installation This section describes the CODESYS installation procedure...
Page 118: ...Programing with CODESYS CPSN PCB271 S1 041 Reference Manual Software 118 5 END_CASE...
Page 122: ...Programing with CODESYS CPSN PCB271 S1 041 Reference Manual Software 122...
Page 133: ...133 Maintenance This section describes how to perform maintenance on the product...
Page 140: ...140 Appendix This section describes additional information of specification and the product...