I/O Refresh Instructions; I/O Refresh Instructions; I/O Refresh - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

6.7

I/O Refresh Instructions

I/O refresh

RFS(P)
High
Basic
Process
performance
RFS
RFSP
(S): Head number of the devices to be refreshed (bits)
n:
Number of refreshes (BIN 16 bits)
Setting
Internal device
data
Bit
 (Only X, Y)
(S)
n
Processing details
• Refreshes only the device being scanned during a scan, and functions to fetch input from external sources or to output data
to an output module.
• Fetching of input from or sending output to an external source is conducted in batch only after the execution of the END
instruction, so it is not possible to output a pulse signal to an outside source during the execution of a scan. When the I/O
refresh instruction is executed, the inputs (X) or outputs (Y) of the corresponding device numbers are refreshed forcibly
midway through program execution. Therefore, a pulse signal can be output to an external source during a scan.
• Use direct access inputs (DX) or direct access outputs (DY) to refresh inputs (X) or outputs (Y) in 1-point units.
[Program based on the RFS instruction]
Command
X0
Command
[Program based on direct access input and direct access output]
DX0
Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
Error details
code
4101
The points specified in n exceed those of the proximate I/O.
6 BASIC INSTRUCTIONS
332

6.7 I/O Refresh Instructions

LCPU
Redundant Universal
Command
Command
R, ZR
Word
RFS
X0
RFS
Y20
Direct access input
J\
Bit
Word
K1
Refreshes X0
Y20
K1
Refreshes Y20
DY20
Direct access output
Q00J/
Q00/
Q01
n
RFS
S
n
RFSP
S
U\G
Zn
Constant
K, H
QnH
QnPH
QnPRH
Others
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents