17: U
SER
C
OMMUNICATION
I
NSTRUCTIONS
« FC4A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
»
17-19
(2) When RXD1/RXD2 instructions with start delimiters STX (02h) and ENQ (05h) are executed
Designating Constant as End Delimiter
An end delimiter can be programmed at other than the first byte in the receive format of a RXD instruction; the
Micro-
Smar t
will recognize the end of valid communication, although RXD instructions without an end delimiter can also be
executed.
When a constant value is designated at other than the first byte of source operand S1, the one- or multiple-byte data serves
as an end delimiter to end the processing of the received data. The valid end delimiter value depends on the data bits
selected in the Communication Parameters dialog box, which is called from
Configure
>
Fun Area Settings
>
Commu-
nication
, followed by selecting
User Protocol
in Port 1 or Port 2
list box and clicking the
Configure
button. When 7 data
bits are selected as default, end delimiters can be 00h through 7Fh. When 8 data bits are selected, end delimiters can be
00h through FFh. Constant values are entered in character or hexadecimal notation into the source data.
If a character in incoming data matches the end delimiter, the RXD instruction ends receiving data at this point and starts
subsequent receive processing as specified. Even if a character matches the end delimiter at a position earlier than
expected, the RXD instruction ends receiving data there.
If a BCC code is included in the receive format of a RXD instruction, an end delimiter can be positioned immediately
before or after the BCC code. If a data register or skip is designated between the BCC and end delimiter, correct receiving
is not ensured.
When a RXD instruction without an end delimiter is executed, data receiving ends when the specified bytes of data in the
receive format, such as data registers and skips, have been received. In addition, data receiving also ends when the interval
between incoming data characters exceeds the receive timeout value specified in the Communication Parameters dialog
box whether the RXD has an end delimiter or not. The character interval timer is started when the first character of incom-
ing communication is received and restarted each time the next character is received. When a character is not received
within a predetermined period of time, timeout occurs and the RXD ends data receive operation.
****h
D100
RXD Instruction 1
STX
(02h)
“1”
(31h)
“2”
(32h)
“3”
(33h)
Incoming Data
****h
D100+n
****h
D101
The incoming data is divided, converted, and stored to data registers according to the receive format.
Start delimiters are not stored to data registers.
ENQ
(05h)
“A”
(41h)
“B”
(42h)
“C”
(43h)
STX (02h)
When D100 is designated as the first data register
****h
D200
RXD Instruction 2
****h
D200+n
****h
D201
ENQ (05h)
When D200 is designated as the first data register
Compare
Summary of Contents for FC4A-C10R2
Page 1: ...FC4A SERIES Micro Programmable Logic Controller User s Manual FC9Y B812 ...
Page 6: ...PREFACE 4 FC4A MICROSMART USER S MANUAL ...
Page 94: ...2 MODULE SPECIFICATIONS 2 74 FC4A MICROSMART USER S MANUAL ...
Page 184: ...6 ALLOCATION NUMBERS 6 20 FC4A MICROSMART USER S MANUAL ...
Page 218: ...8 ADVANCED INSTRUCTIONS 8 8 FC4A MICROSMART USER S MANUAL ...
Page 240: ...11 BINARY ARITHMETIC INSTRUCTIONS 11 8 FC4A MICROSMART USER S MANUAL ...
Page 244: ...12 BOOLEAN COMPUTATION INSTRUCTIONS 12 4 FC4A MICROSMART USER S MANUAL ...
Page 252: ...13 SHIFT ROTATE INSTRUCTIONS 13 8 FC4A MICROSMART USER S MANUAL ...
Page 274: ...15 WEEK PROGRAMMER INSTRUCTIONS 15 8 FC4A MICROSMART USER S MANUAL ...
Page 378: ...22 DUAL TEACHING TIMER INSTRUCTIONS 22 4 FC4A MICROSMART USER S MANUAL ...
Page 386: ...23 INTELLIGENT MODULE ACCESS INSTRUCTIONS 23 8 FC4A MICROSMART USER S MANUAL ...
Page 408: ...24 ANALOG I O CONTROL 24 22 FC4A MICROSMART USER S MANUAL ...
Page 426: ...26 COMPUTER LINK COMMUNICATION 26 6 FC4A MICROSMART USER S MANUAL ...