Rxd1 (Receive 1); Rxd2 (Receive 2) - IDEC FC4A-C10R2 User Manual

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

RXD1 (Receive 1)

RXD
1
*****
Applicable CPU Modules
FC4A-C10R2/C
FC4A-C16R2/C
X

RXD2 (Receive 2)

RXD
2
*****
Applicable CPU Modules
FC4A-C10R2/C
FC4A-C16R2/C
Valid Operands
Operand
S1 (Source 1)
D1 (Destination 1)
D2 (Destination 2)
For the valid operand number range, see pages 6-1 and 6-2.
Internal relays M0 through M1277 can be designated as D1. Special internal relays cannot be designated as D1.
Receive format designated by operand S1 can be a maximum of 200 bytes.
When data receive is complete, an output or internal relay, designated by operand D1, is turned on.
Destination 2 occupies two consecutive data registers starting with the operand designated by D2. The receive status data
register, D0 through D1298 or D2000 through D7998, stores the status of data receive and error code. The next data regis-
ter stores the byte count of received data. The same data registers can not be used as transmit status registers for TXD1/
TXD2 instructions and receive status registers for RXD1/RXD2 instructions.
While RXD1/RXD2 instructions are ready for receiving data after a receive format is complete, turning on the user com-
munication receive instruction cancel flag M8022 or M8023 cancels all RXD1/RXD2 instructions.
The RXD1/RXD2 instructions cannot be used in an interrupt program. If used, a user program execution error will result,
turning on special internal relay M8004 and the ERR LED on the CPU module.
Precautions for Programming the RXD Instruction
The MicroSmart can execute a maximum of five RXD1 and five RXD2 instructions that have a start delimiter at the same
time. If a start delimiter is not programmed in RXD1/RXD2 instructions, the MicroSmart can execute only one RXD1 and
one RXD2 instructions at a time. If the start input for a RXD1/RXD2 instruction is turned on while another RXD1/RXD2
instruction without a start delimiter is executed, a user communication error occurs.
Since RXD instructions are executed in each scan while input is on, a pulse input from a SOTU or SOTD instruction should
be used as required.
Once the input to the RXD instruction is turned on, the RXD is activated and ready for receiving incoming communication
even after the input is turned off. When the RXD completes data receiving, the RXD is deactivated if the input to the RXD is
off. Or, if the input is on, the RXD is made ready for receiving another communication. M8022/M8023 deactivate all RXD
instructions waiting for incoming communication.
S1
D1
D2
*****
*****
FC4A-C24R2/C
X
X
S1
D1
D2
*****
*****
FC4A-C24R2/C
X
X
Function
Receive format
Receive completion output
Receive status
« FC4A M
17: U
When input is on, data received through port 1 from a remote terminal is
converted and stored in data registers according to the receive format
designated by S1.
FC4A-D20K3/S3
X
When input is on, data received through port 2 from a remote terminal is
converted and stored in data registers according to the receive format
designated by S1.
FC4A-D20K3/S3
X
I
— — — — — —
— — — — — —
S
U
'
M
ICRO
MART
SER
S
ANUAL
C
SER
OMMUNICATION
FC4A-D20RK1/RS1 & FC4A-D40K3/S3
X
FC4A-D20RK1/RS1 & FC4A-D40K3/S3
X
Q
M
R
T
C
D
X
▲ — — — —
X
X
»
I
NSTRUCTIONS
Constant
Repeat
X
17-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents