AH500 Programming Manual
6-396
Description Action
COM2
SM209
SM211
The communication protocol changes in accordance with the setting
values in SR201, SR202, SR209, SR210, SR211, SR212, SR213
SR214, SR215, SR216, SM210, and SM212. If SM209/SM211 is
set to ON, the communication protocol of COM1/COM2 changes
accordance with the setting values in SR201, SR202, SR209
SR210, SR211, SR212, SR213, SR214, SR215, SR216, SM210
and SM212
. Besides, the system automatically resets
SM209/SM211 to OFF.
Users
flag to ON,
and the
system
resets it to
OFF.
3. The special data registers related to the instruction RS/MODRW:
register
Description
SR201 SR202
The communication address of COM1/COM2 on the PLC as a slave
SR210 SR213
Suppose the setting value is larger than 0. When the instruction RS/MODRW is
executed, SM104/SM105 is set to ON if no data is received after the timeout
period or the intervening time of the two characters exceeds the setting value.
After the problem is solved, users have to reset SM104/SM105 to OFF. The
register can be set to 0 in the RS instruction and the communication timeout
monitoring will be disabled. The MODRW instruction should be set between
SR621 X
The interrupt character used in the instruction RS
If the character received is the low 8-bit data in SR621, I32 will be triggered. If n
is 0, the interrupt task will not be triggered.
X SR622
The interrupt character used in the instruction RS
If the character received is the low 8-bit data in SR622, I33 will be triggered. If n
is 0, the interrupt task will not be triggered.
4. SR215, SR216 are used for recording the PLC communication interface. The codes are
shown in the following table.
0
1
2
RS232 RS485 RS422
5. SR209 and SR212: The setting values of the communication protocols RS485/232 are shown
in the following table.
b1
b2
Parity bits
b5
b6
b7
0001
(16#1)
:
4800
0010
(16#2)
:
9600
0011
(16#3)
:
19200
0100
(16#4)
:
38400
0101
(16#5)
:
57600