APAR AR602.B User Manual Download Page 24

24 

the MQTT 

broker

. Sample content for the most extensive option (when 91:

 

MqMo

 = 

FuLL

 

, maximum size 99B): 

"AR6x2_1;PV=36.6 °C;MV1=100 %;MV2=100 %;MV3=0 %;cstat=0x0000;outA=7.320 mA;BIN=0" (AR6x2_

Addr

 = 

device name; PV = measurement value and unit; MV1 = value of the control signal for output 1; MV2 for the output 
2;MV3 for output 3; cstat = work status of control algorithms, description in 

chapter 11.5

;outA=

 

analog output 

signal value mA / V; BIN = binary input status, 0 = closed, i.e. active). 
Additionally, in order to optionally authorize the connection, the following fields are set in the MQTT packet: 

client 

ID

 (created accordingto the template "

apar

MAC

 ",

 

where

 

MAC

 is the EUI-48 hardware address of the

  

controller,

 

e.g.

"

aparFCC23D21C54A") and 

user name

 (as "

apar

PASS

 ", the  last 2  digits of parameter 70:

 

PASS

, eg

 " apar11"

) and 

password

 (parameter 70:

 

PASS

 

). 

Protocol parameters useful for advanced needs: version 3.1.1, QOS = 0, retain = 1, keep alive = 0 (off). 
In the event of frequent disconnection with the broker , check the reliability of the network/internet connection 
(switch), test the possible impact of the message publication period (extend, recommended> 5s, parameter 97: 

MqtP

), as well as MODBUS-TCP communication (temporarily stop if in use). 

 

11.2. MODBUS–TCP SERIAL TRANSMISSION PROTOCOL

 

The MODBUS-TCP protocol is available for the Ethernet (RJ45) interface and uses the TCP/IP transport layer. 
Parameters used by this service, such as the TCP port number, are described in 

chapter 8,

 

Table 8, point VIII

The timeout for the MODBUS-TCP transmission, after which the open but unused port is closed, is 60s. 
Available functions: READ - 3 or 4, WRITE - 6 

Table 11.2.1. MODBUS-TCP protocol request frame format for the READ and WRITE functions

 (frame length -

12B) 

MODBUS protocol header (7 bytes) 

Function 
code 
(READ or 
WRITE) 

register address  
from 

Table 11.5 

(chapter 11.5)

 

number of registers to 
read (1 ÷ 13) or value of a 
register to write 

Transaction and protocol 
identifiers 

Length field 
(value = 6) 

Unit ID 

4 bytes 

2 bytes 

1 byte  

1 byte 

2 bytes (HB-LB) 

2 bytes (HB-LB) 

Example 11.2.1.

 Reading a register with address 0: 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0x06 - 0xFF - 0x04 - 0x0000 - 

0x0001

 

Table 11.2.2. Response frame format for the READ function 

(minimum frame length - 11 bytes):  

MODBUS protocol header (7 bytes) 

Function 
code 
(READ) 

number of bytes 
in the data field (2 
÷ 26)  

data field - register 
value (2B) 

Transaction and protocol 
identifiers 

Length field 
(max 29) 

Unit ID 

4 bytes 

2 bytes 

1 byte  

1 byte 

1 byte 

2÷26

 

bytes (HB-LB) 

Example 11.2.2

. The response frame for the register value equal to 0:  

0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0x05 - 0xFF - 0x04 - 0x01 - 0x0000 

Table 11.2.3. Response frame format for the WRITE function

 (frame length - 12 bytes) 

copy of the query frame for the WRITE function (Table 11.2.1) 

The error codes are the same as for the MODBUS-RTU protocol (

Table 11.4.5

Example 11.2.3.

 Error frame for a non-existing register address to be read:  

0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0x05 - 0xFF - 0x84 - 0x02 - 0x0001 

 

 

 

 

 

 

 

 

Summary of Contents for AR602.B

Page 1: ...yn ul Ga czy skiego 6 tel 22 101 27 31 853 48 56 853 49 30 e mail automatyka apar pl www apar pl USER MANUAL AR602 B AR652 B AR642 B AR682 B AR632 B AR662 B UNIVERSAL PROGRAMMABLE CONTROLLERS Version...

Page 2: ...SETPOINTS FOR OUTPUTS QUICK ACCESS MENU 17 9 2 ANALOG OUTPUT mA V 17 9 3 PID TUNING 18 9 4 AUTOMATIC SELECTION OF PID PARAMETERS 19 9 5 PID PARAMETERS CORRECTION 20 9 6 PROGRAMMED WORK CHARACTERISTIC...

Page 3: ...F CONTROLLERS ACCESSORIES AND KIT CONTENTS control and supervision of temperature and other physical values humidity pressure flow level velocity etc converted into a standard electrical signal config...

Page 4: ...input type range of indications for analogue inputs options of control alarms display communication access and other configuration parameters access to configuration parameters protected by a user s...

Page 5: ...ure 0 1 C or 1 C programmable with parameter 3 dot Indications range resolution for analog inputs maximum 1999 9999 programmable Decimal point position for analog inputs programmable 3 dot in the rang...

Page 6: ...ply circuit and relay outputs 50 V for the remaining input and output circuits and communication interfaces insulation resistance 20 M altitude above the sea level 2000 m 5 HOUSING DIMENSIONS AND ASSE...

Page 7: ...input universal 14 15 16 P1 or SSR1 relay output 14 15 for AR602 B P2 or SSR2 output 14 15 17 18 P2 or SSR2 relay output for AR602 B P1 or SSR1 output 19 20 P3 or SSR3 relay output except AR602 B USB...

Page 8: ...on the display board and carefully slide the board out of the mounting sockets connectors for signal cables power supply and relay outputs are available lead the electric wires into the housing throu...

Page 9: ...5s chap 7 1 and 8 F not available in AR602 B activation of the function selected with parameter 64 FunF pressing longer than 1 5 seconds description in chapters 7 1 and 8 UP DOWN SET simultaneously o...

Page 10: ...ive level short circuit or 0 8V Moreover BIN has priority higher than the F and SET keys Activating or stopping the function is signaled by appropriate messages on the lower display described in Table...

Page 11: ...ault value of a parameter description of the function in chapter 7 points b and c confirm the changed value of the parameter with the SET key or cancel it with the F or UP DOWN keys pressing UP DOWN o...

Page 12: ...or the bottom of the indication range 99 9 1800 lower setting limit for setpoints SP 11 Set1 Set3 99 9 C 999 9999 2 beginning of the scale for the 0 4mA 0V 0 input and the PV bargraph 5 irHi upper lim...

Page 13: ...D software main output STB LATCH and step adjustment servo 2 for PID software main output and servo algorithms only heating inversed and cooling direct characteristics apply 3 Values 4 7 i e in relati...

Page 14: ...Fto1 2 3 output emergency state for missing damaged sensor signal input or outside the measuring range 0 noCh no change 1 oFF disabled 2 on enabled 3 hAnd manual mode with a set output signal level pa...

Page 15: ...0 units min 2 1 0 C min 50 55 60 tiM1 2 3time for stage 1 2 3 0 1440min duration of the segment for the stage with countdown 60 min 51 56 61 PSE1 2 3control algorithm for step 1 2 3 1 onof ON OFF with...

Page 16: ...graph for mA V output 8 barP PV bargraph measurement in the range irLo 5 irHi con1 VIII COMMUNICATION OPTIONS FOR RS485 AND ETHERNET submenu trAn description in chapters 11 11 5 74 r4br speed for RS48...

Page 17: ...possibilities offered by the program control chapter 9 6 A detailed description of configuration of the operation of outputs is included in chapters 9 1 9 7 The default factory configuration is as fol...

Page 18: ...adjust the settings chapter 9 5 The PID control for a given control output is active when one of the three sets of PID parameters is selected with the parameter ctY1 2 3 description in chapter 8 Table...

Page 19: ...ng sudden changes of the measured value PV or the setpoint SP The choice of the parameter selection method depends on the nature of the initial conditions For a stabilized controlled quantity the step...

Page 20: ...stage 1 2 3 operates in accordance with the control parameters of the assigned setpoint SP 1 2 3 description in Table 8 point II A program can be assigned to any of the control outputs 1 2 3 with para...

Page 21: ...period for output 2 parameter 21 Per2 Sample configuration ON OFFfor heatingwith a set temperature of 50 C and a valve opening closing time of 100s output 1 parameters Table 8 point II group out1 ctY...

Page 22: ...mode on off F SET BIN function chapter 7 1 Pr 1 2 3 PEnd process controller function ramping on output 1 2 3 chapter 9 6 Stb1 2 3 STB LATCH alarm for outputs 1 2 3 cleared by F SET BIN with the functi...

Page 23: ...es not block the ports and applications used e g ARSOFT CFG The unique MAC EUI 48 hardware address of the controller Ethernet interface is available in ARSOFT CFG Parameters Communication options and...

Page 24: ...arameters used by this service such as the TCP port number are described in chapter 8 Table 8 point VIII The timeout for the MODBUS TCP transmission after which the open but unused port is closed is 6...

Page 25: ...evice function 4 or 3 register address to be read from Table 11 5 chap 11 5 number of registers to be read 1 13 CRC checksum 1 byte 1 byte 2 bytes HB LB 2 bytes HB LB 2 bytes LB HB Example 11 4 1 Read...

Page 26: ...status of outputs alarms 1 2 3 bits 0 1 2 bit 1 output enabled STB LATCH alarms for outputs 1 2 3 bits 3 4 5 bit 1 active quick manual mode for outputs 1 2 3 bits 6 7 8 bit 1 active PID tuning status...

Page 27: ...net interface EUI 48 Configuration parameters the collective list of parameters can be found in chapter 8 Table 8 Register parameter address 35 parameter index from Table 8 e g address 35 for paramete...

Reviews: