178
Improved Instructions
Section 7-14
CIO Area Allocation Details (n = CIO 2000 + (Unit Number
´
10))
7-14 Improved Instructions
7-14-1 MCRO Instruction
Ladder Library Execution
Overview
The ladder library function can be used on All -V1 Units. Ladder libraries are
executed by using the MCRO instruction in the user program.
Refer to
Ladder Library Function
on page 166 for details.
Explanation of Operations
Content of Subroutine No. (N)
N = 200 to 249
Specifies the subroutine No. of a ladder library to be executed.
Content of the First Word Address of Argument Data (S)
The data of 5 words (S to S+4) starting from the first word address is given to
the argument area for MCRO instruction (SR 220 to 224) as argument.
Content of the First Word Address of Returned Value Data (D)
At a return from a ladder library, the data in the returned value area for MCRO
instruction (SR 225 to 229) is given to the first word address of returned value
data as a returned value.
Behavior of the Flag
Direction CPU Unit
word
address
Bits
Name
Function
Output
n
06
Back up data
write
OFF to ON: Commands to write back up data in the unit to
memory card inserted in CPU unit (At rise)
Corresponds to SR 230, bit 06 of special auxiliary bits in the
unit
07
Back up data
read
OFF to ON: Commands to read back up data from memory
card inserted in CPU unit to the unit
Corresponds to SR 230, bit 07 of special auxiliary bits in the
unit
Input
n+5
12
Memory card
transfer error
0: No error
1: Transfer error occurred
14
Unit busy
This bit indicates whether or not the Customizable Counter
Unit is busy.
OFF: The Unit is not busy.
ON:
The Unit is busy (i.e., performing initial processing, or
transferring data to memory card).
MCRO
@MCRO
N
N
N: Subroutine No.
S
S
S: First word address of argument data
D
D
D: First word address of returned value data
25503 (ER)
Turns ON when "ladder library execution mode (DM 6624)" is other
than A5A5 Hex.
• Turns ON when there is no ladder library of the subroutine No. spec-
ified by MCRO instruction.
• Turns ON when trying to execute a ladder library with the unit in
which no library has been created.
Содержание CS1W-HCA12-V1
Страница 2: ......
Страница 6: ...vi...
Страница 20: ...xx Conformance to EC Directives 7...
Страница 38: ...18 Models and System Configurations Section 1 2...
Страница 78: ...58 Fail safe Circuits Section 3 5...
Страница 138: ...118 AR Area Section 6 4...
Страница 204: ...184 Improved Instructions Section 7 14...
Страница 222: ...202 Cycle Time Section 8 3...
Страница 240: ...220 Troubleshooting Flowcharts Section 9 5...
Страница 244: ...224 Precautions when Using the CX Programmer Appendix A...
Страница 252: ......
Страница 253: ......