Stpa Read (Stop Access Read) - IDEC FC4A-C10R2 User Manual

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

23: I
M
NTELLIGENT
ODULE

STPA READ (Stop Access Read)

STPA(*)
DATA
READ
*****
Start input is not needed for this instruction.
Note: STPA READ and STPA WRITE instructions can be used 64 times in a user program. When more than 64 STPA READ
and STPA WRITE instructions are used in a user program, the excess instructions are not executed and error code 7 is
stored in the data register designated as STATUS.
Applicable CPU Modules
FC4A-C10R2/C
FC4A-C16R2/C
Valid Operands (Stop Access Read)
Operand
Function
DATA
First operand number to store read data
STATUS
Operating status code
SLOT
Intelligent module slot number
ADDRESS
First address in intelligent module to read data from — — — — — — —
BYTE
Bytes of data to read
For the valid operand number range, see pages 6-1 and 6-2.
DATA:
Specify the first operand number to store the data read from the intelligent module.
Internal relays M0 through M1277 and AS-Interface internal relays M1300 through M1997 can be desig-
nated as DATA. Special internal relays cannot be designated as DATA.
When T (timer) or C (counter) is used as DATA for Stop Access Read, the data read from the intelligent
module is stored as a preset value which can be 0 through 65535.
All data registers, including special data registers, AS-Interface data registers, and expansion data registers,
can be designated as DATA.
STATUS:
Specify a data register to store the operating status code. Only data registers D0 through D1299 can be des-
ignated as STATUS. Special data registers, AS-Interface data registers, and expansion data registers cannot
be designated whether the AS-Interface master module is used or not. For status code description, see
page 23-6.
SLOT:
Enter the slot number where the intelligent module is mounted. A maximum of seven intelligent modules
can be used.
ADDRESS: Specify the first address in the intelligent module to read data from.
BYTE:
Specify the quantity of data to read in bytes.
The STPA READ instruction 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.
If a STPA READ instruction is programmed between MCS and MCR instructions, the STPA READ instruction is exe-
cuted when the CPU module is stopped regardless whether the input condition for the MCS instruction is on or off. For
MCS and MCR instructions, see page 7-23.
Valid Data Types
W (word)
I (integer)
X
X
23-4
A
I
CCESS
NSTRUCTIONS
STATUS
SLOT
ADDRESS
*****
*
FC4A-C24R2/C
X
When a bit operand such as I (input), Q (output), M (internal relay), or R (shift register) is
designated as DATA, 16 points are used.
When a word operand such as T (timer), C (counter), or D (data register) is designated as
DATA, 1 point is used.
« FC4A M
ICRO
When the CPU module stops, data is read from
BYTE
the area starting at ADDRESS in the intelligent
***
***
module designated by SLOT and stored to the
operand designated by DATA.
BYTE designates the quantity of data to read.
STATUS stores the operating status code.
FC4A-D20K3/S3
X
I
Q
X
— — — — — —
— — — — — — —
— — — — — — —
S
U
'
M
»
MART
SER
S
ANUAL
FC4A-D20RK1/RS1 & FC4A-D40K3/S3
X
M
R
T
C
D
Constant
X
X
X
X
X
1-7
0-127
1-127
Repeat

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents