background image

CR No.

Type

Register

Description

HW 

LW 

#118 ~#117 

R/W  Modbus TCP Destination IP 

The Destination IP Address of Modbus TCP transaction 

#119  R/W  Modbus TCP Data Length 

Data length of Modbus TCP in CR#120 ~ CR#219 

#219 ~ #120  R/W  Modbus TCP Data Buffer 

Data buffer of Modbus TCP Mode for storing 

sending/receiving data 

#250 ~ #220 

-

Reserved 

Reserved 

#251 

R

Error Code

The ELC-COENETM error code   

#255 ~ #252 

-

Reserved 

Reserved 

Symbol defini ion: R: Read, W: Write 

Read and write CR register 

1.  ELC uses the FROM/DFROM instruction to read CR data of fast expansion modules. 

2.  ELC uses the TO/DTO instruction to write CR data of fast expansion modules. 

3.  The number of fast expansion modules is from 100 to 107 (m1=100~107). 

Explanation 

1.  CR#2: Communication mode setting: Set to 0 to Disable; Set to 1 to Enable. 

bit

Mode

0

1

b0

Modbus TCP Mode 

Modbus TCP Mode Disable 

Modbus TCP Mode Enable 

b1

Data Exchange Mode 

Data Exchange Mode Disable 

Data Exchange Mode Enable 

2.  CR#251: Error codes; please refer to the following chart. 

CR#251

 Error status 

b0

 Not connected.

b3

  CR#13 is set as 1 but Data Exchange func ion has not been enabled. 

b7

  Connecting to SMTP Server fails. 

b8

  DHCP did not acquire correct network parameters. 

Network Configuration Function

1.  CR#87: IP mode setting. Set as 0 to be Static IP address; Set as 1 to obtain IP address by DHCP 

(Dynamic IP).

2.  CR#88 ~ CR#89: IP Address setting. It’s accessed through Hex Mode. It cannot write when in 

DHCP Mode. For example, if the user wants to set the IP as 192.168.0.2, write H’0002 to CR#70 

and H’C0A8 to CR#71. (K192 = H’C0, K168 = H’A8, K0 = H’00, K2 = H’02)

3.  CR#91 ~ CR#90: Subnet Mask setting. It’s accessed through Hex Mode. It cannot write when in 

DHCP Mode. For example, if the user wants set Subnet Mask as 255.255.255.0, write H’FF00 to 

CR#90 and H’FFFF to CR#91. 

4.  CR#93 ~ CR#92: Default Gateway IP Address setting. It’s accessed through Hex Mode. It cannot 

write when in DHCP Mode. See CR#88 and CR#89 for the steps of Default Gateway IP Address 

setting.

5.  CR#94: IP address are configured using CR#87 ~ CR#93 when CR#94 is set to 1. CR#94 = 0 

when the IP address configuration is completed. 

6.  CR#95: Status of IP Address. CR#95 = 0 refers to normal; CR#95 = 1 when the DHCP 

transaction is uncompleted; CR#95 = 2 when IP Address setting is in progress. 

Sending E-mail Function

1.  CR#3 ~ CR#6: E-mail will be sent when set to 1. After the E-Mail sending is complete, the CR 

value will be set to 0. Please use differential command to trigger CR#3 ~ CR#6 in order to avoid 

continual e-mails. 

2.  CR#7, CR#8: E-Mail Status. See the table below. 

CR Value 

E-Mail Status

0

 Nothing 

1

 Processing 

2

 Success 

3 ~ 9 

  Reserve 

10

  Cannot connect to SMTP-Server   

11  

E-mail 

Address 

error 

12

  Error response SMTP-Server transmission error 

13

 No available TCP connection 

Отзывы: