We would like to point out that using the present Communication Protocol implies the written acceptance of any conditions started on Mod.1. previously completed and signed. This Communication Protocol allows you to connect to the RS422 serial line any Carel’s electronic controller and exchange date with a supervisory computer.
Carel’s network has a multi-point MASTER/SLAVE structure: the Master is represented by the supervisory computer or Carel’s Gateway, the Slaves are represented by all Carel’s peripheral units. Each RS422 serial line can receive up to 16 peripheral units(no.15 IR32/Asm% controllers)
The hardware support on based on standard RS422 with the following.
The figure below shows the architecture of the networks:
COMMUNICATION PROTOCOL SPECIFICATIONS
For the symbols and messages , please refer to the keys indicated below, The peripherals act as Slave units towards the Master(either the supervisory computer or the Gateway)with the following protocol.
***The peripheral unit is asked to transmit any variable whose value has changed since the last polling.
The Master asks the information to the Slave addressing it with
The answer of the Slave will depend on the changes concerning the required variables since the last polling, with the following results:
MASTER’s message to the Slave:
SLAVE’s answer to the Master:
If at least one variable has changed since the last polling, the Slave’s answer will be as follow:
If no changes as all have occurred to the variables since the last polling , the Slave’s answer will be:
Checking transmission correctness from MASTER to SLAVE:
It is the Master that checks the correctness of the message (syntax and checksum). If the message has been correctly transmitted the Master will answer:
If the message has been incorrectly transmitted, no answer will be given.
In this case the peripheral unit will not exchange any information until the Master’s next polling.
****Setting the parameter’s value of any peripheral unit whose address is identified by
Protocol procedure allowing you to change the value of any peripheral’s parameter (Carel’s controller) directly via supervisory computer.
MASTER’s message to the Slave:
SLAVE’s message to Master:
Affirmative answer (correct message transmission):
negative answer(incorrect message transmission):
In the latter case the Master will prompt the necessary action (it will send the message again)
***Forcing database reading of any peripheral unit whose address identified by
Sending the F command (ASCII character)to any peripheral unit force the transmission of all the peripheral’s data(this message is usually the first one sent by the Master to the peripheral after the two units have been connected).
MASTER’s message to the Slave:
F-46h.
SLAVE’s answer (message recognition) to the Master:
Affirmative answer (correct message transmission):
negative answer(incorrect message transmission):
From now on, every time the Master sends an
***Keys
If, for example, checksum=6AH, the result will be:
(Ex: address=10 then ind_var=30h+0Ah=3ah).
(Ex: 100 corresponds to 0064,that is 30h(ASCII=0),3Ch(ASCII=0), 26H(ASCII=6), 34H(ASCII=4).Negative numbers complement to 2. Example:
INTEGER 100 0064 30h, 30h, 36h, 34h
431 01AF 30h, 31h, 41h, 46h
ANALOG 10.0 0064 30h, 30h, 36h, 34h
43.1 01AF 30h, 31h, 41h, 46h
Integer(‘T’) and Analogue(‘A’) variables are transmitted through 4 consecutive bytes in ASCII text. Analogue variables are transmitted with the same code used for integer(see
***Control characters
Transmission parameters between Master (computer or external protocol translation unit) and Slave (Carel controllers):
Baud rate 1200 Word: 8 bit Stop bit: 2 Parity: None
***Timing