Delta AH500 Programming Manual page 590

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
1812
COMRS
Device
X
Y
M
S
1
S
2
S
3
D
1
D
2
Symbol:
S
1
S
2
S
3
D
1
D
2
Explanation:
1.
Only applicable for version V1.03 or later versions.
2.
If a specific character or specific characters are used as the condition of ending the receiving
of data, it is suggested that the instruction should be applied to ASCII data. If the instruction is
not applied to ASCII data, it is suggested that a timeout period should be used as the condition
of ending the receiving of data.
3.
The instruction COMRS only supports the built-in communication ports of an AH500 series
CPU module. (COM1 in AHCPU5xx-EN, and COM1 and COM2 in AHCPU5xx-RS2 are
supported.)
4.
S
: Communication port number
1
S
=1: COM1
1
S
=1: COM2
1
If the value in S
is neither 1 nor 2, the instruction will not be executed.
1
5.
S
: Source of the data which is sent
2
S
: Length of the data which is sent
3
If S
is D100 and S
2
communication port specified by S
6.
If the setting value in S
can be sent is 1000.
7.
D
: Length of the data which has been received.
1
D
+1~D
+n: Devices in which the data received is stored
1
1
If D
is D200, the value in D
1
stored in the low bytes in the devices starting from D201 (the high bytes will be unchanged),
the receiving of data will not stop until the consecutive stop characters 16#0D and 16#0A are
received, the length of the data received will be written to D200 after 16#0D and 16#0A are
received, and a completion flag will be set to ON after the receiving of data stops.
8.
D
: Mode of receiving data
2
6 - 4 2 2
Operand
S
, S
, S
, D
1
2
3
1
S
T
C
HC
Pulse instruction
-
: Communication port number (1~2)
: Source of the data which is sent
: Length of the data which is sent
Initial device in which communication data
:
received is stored
: Condition of ending the receiving of data
is K10, the values in the low bytes in D100~D109 will be sent through the
3
.
1
is 0, no string will be sent. The maximum number of characters which
3
is 3, and the value in D
2
Sending and receiving
, D
2
communication data
D
L
SM SR
16-bit instruction (11 steps) 32-bit instruction (5 steps)
AH500
+1 is 16#0D0A, the data received will be
2
Function
E
K
16# "$"
DF
-
Word
Word
Word
Word
Word

Advertisement

Table of Contents
loading

Table of Contents