136
136
136
136
RS485-1 is the extension port of ELC-12 CPU(new version) named COM2 ,it usually servers as
extension port , but it also can be used as common RS485 port if no any extensions need use
in your application and at the same time two RS485 ports need be used. The standard RS485
module cannot bring out the terminals of COM2 built-in ELC-12 series CP U, so one customize
RS485 module should be used for this case.
RS485-2 is the common RS485 port built-in ELC-12 series CP U ,ELC12-E-RS485 module is
used to bring out the terminals from this port named COM3. Additionally ,ELC12-E-ETHERNET
module is also using this port to connect with ETHERNET.
Command
Command
Command
Command Function
Function
Function
Function description
description
description
description remark
remark
remark
remark
01
01
01
01 Read one group coil status ( 00000 ~ 0XXXX ) Read Coil Status ( output )
02
02
02
02 Fetch one group data of the status of switch input
( 10000 ~ 1XXXX )
Read input Status (input relay)
03
03
03
03 Read data of multi-holding register ( 40000 ~ 4XXXX ) Read Holding Registers
(Output register)
04
04
04
04 Read data of input registers (3000 ~ 3XXXX) Read Input Registers
Note: Please use “ 03 ” command to read AI/AO of xLogic
4.where to save the data read from Slave.
Example: The following we'll take a example that one xLogic (Master) communicate with other
xLoigc (Slave) via RS485.
Example
Example
Example
Example 1:
1:
1:
1: Get Q1 status of SLAVE1(xLogic) and then save the bit status to FM1.