7 Applied Instructions
7.18 Others
599
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
Cautions
1) When handling character string data in a structured program, a 16-bit device cannot be specified directly
as in the case of a simple project.
Use a label to handle character string data.
Use a global label to specify a label.
2) Specify a device number in the device specified by for which a comment is registered in the PLC.
If a comment is not registered for the device specified by , "20H" (space) is stored in the device
specified by for the number of characters in the comment (16 half-width characters).
3) The FX
3UC PLC of V2.20 or later supports this instruction.
Error
An operation error is caused in the following cases. The error flag M8067 turns ON, and the error code is
stored in D8067.
1) When a comment is not registered for the device specified by (error code: K6706)
2) When the range of points used from the device specified by for the comment exceeds the
corresponding device range (error code: K6706)
The comment, however, is written up to that point.
Program examples
In the program shown below, the comment "Target Line A" registered to D100 is stored in ASCII code in D0
and later when X010 is set to ON. (When M8091 is OFF)
D0
D1
D2
b15 b8 b7 b0
D3
Comment of D100
Target Line A
D4
D5
D6
D7
D8
RST
EN
ENO
d
X010
COMRDP
EN ENO
d
s
D100
M8091
VAR_COMENT
*1
VAR_COMENT is a global label and is defined as D0.*1.
[Structured ladder] [ST]
RST(X010,M8091);
VAR_COMENT:=COMRDP(X010,D100);
74H(t)
61H(a)
67H(g)
54H(T)
72H(r)
65H(e)
4CH(L)
20H(space)
20H(space)
20H(space)
0000H
20H(space)
6EH(n)
20H(space)
69H(i)
65H(e)
41H(A)