IDEC FC4A-C10R2 User Manual page 296

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

17: U
C
SER
OMMUNICATION
(2) Repeat cycles = 3
"1"
"2"
"3"
(31h)
(32h)
(33h)
2 digits
2 digits
1st block
2nd block
Repeat 1
Designating Constant as Start Delimiter
A start delimiter can be programmed at the first byte in the receive format of a RXD1/RXD2 instruction; the
will recognize the beginning of valid communication, although a RXD1/RXD2 instruction without a start delimiter can
also be executed.
When a constant value is designated at the first byte of source operand S1, the one-byte data serves as a start delimiter to
start the processing of the received data. The valid start delimiter value depends on the data bits selected in the Communi-
cation Parameters dialog box, which is called from Configure > Fun Area Settings > Communication, 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, start delimiters can be 00h through 7Fh. When 8 data bits are selected, start delimiters can be 00h through FFh.
Constant values are entered in character or hexadecimal notation into the source data.
A maximum of five RXD1 and five RXD2 instructions with different start delimiters can be executed at the same time.
When the first byte of the incoming data matches the start delimiter of a RXD1/RXD2 instruction, the received data is pro-
cessed and stored according to the receive format specified in the RXD1/RXD2 instruction. If the first byte of the incom-
ing data does not match the start delimiter of any RXD1/RXD2 instruction that is executed, the
incoming data and waits for the next communication.
While a RXD1/RXD2 instruction without a start delimiter is executed, any incoming data is processed continuously
according to the receive format. Only one RXD1 and one RXD2 instructions without a start delimiter can be executed at a
time. If start inputs to two or more RXD1/RXD2 instructions without a start delimiter are turned on simultaneously, one at
the smallest address is executed and the corresponding completion output is turned on.
Example:
(1) When a RXD1/RXD2 instruction without a start delimiter is executed
Incoming Data
"0"
"1"
"2"
(30h)
(31h)
(32h)
1st
character
The incoming data is divided, converted, and stored to data registers according to the receive format.
17-18
I
NSTRUCTIONS
"4"
"5"
"6"
(34h)
(35h)
(36h)
2 digits
3rd block
ASCII to Binary conversion
Repeat 2
Repeat 3
When D100 is designated as the first data register
"3"
(33h)
« FC4A M
D20
D21
D22
D100+n
S
U
'
M
ICRO
MART
SER
S
ANUAL
0012h
0034h
0056h
MicroSmart
**** h
D100
**** h
D101
**** h
»
MicroSmart
discards the

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents