EN
ATYSp - 542001E - SOCOMEC
14. COMMUNICATION
One can benet of all the ATySp functionality when including one of the communication options available.
Options for communication include:
• Ethernet (Modbus TCP) Webserver
Gateway Module
• Ethernet (Modbus TCP) Webserver
Module
• MODBUS RTU over RS485 Module
Modbus
RS485
Ethernet/Modbus TCP Simple
orGateway
14.1. Generalinformation
Communication via an RS485 connection (MODBUS
®
protocol) enables you to connect up to 31 ATyS to a PC or
programmable logic controller over a distance of 1200 metres.
To authorise a change in conguration: dene adress HEXA E300 as 1000.
Recommendations:
Use a shielded twisted pair, type LIYCY.
If the distance of 1200 m and / or the number of 31 ATyS be exceeded, it will be necessary to connect a repeater to
allow an connection of ATyS for over 1200 m.
For further information on the connection methodology, please consult SOCOMEC.
Communication via an RJ45 Ethernet cable enables you to connect up to 31 ATyS to a PC or a programmable
logic controller over a distance of 100 metres. The Ethernet Gateway may accommodate a mix of all Socomec
communicating products such as the DIRIS and COUNTIS range of products.
14.2. MODBUS
®
protocol
The MODBUS
®
protocol used by the ATyS requires a dialogue using a master/slave hierarchical structure. Two
dialogues are possible:
• the master communicates with a slave (ATyS) and waits for its response,
• the master communicates with all the slaves (ATyS) without waiting for their response.
The communication mode is RTU (Remote Terminal Unit) which uses hexadecimal 8 bit characters.
In the communication protocol, a standard frame is made up of the following elements:
Slaveaddress Function code Address Data CRC 16
• Slave address: communicating device address
• Function codes:
3: to read n words (maximum 125)
6: to write one word.
16: to write n words (maximum 125).
• Address: Register address (refer to following tables)
• Data: parameters linked to function (number of words, value).
When slave address 0 is selected, a message is sent to all devices present on the network (only for functions
6 and 16), this type of message is called general distribution, so it is not followed up with a response from
the slaves. The maximum response time (timeout) is 250 ms between a question and a response.
RefertoAnnexeIIIpage81forcommunicationaddressanddesignationdetails.