4 - 109 4 - 109
4 SFC PROGRAM CONFIGURATION
MELSEC-Q
[Operation Errors]
• When a comment file specified at execution of S(P).SFCTCOMR instruction does not existed
...................................................................................................................................Error No. 2410
• When SFC block No. specified at n1 is other than 0 to 319
...................................................................................................................................Error No. 4100
• When the number of readout comment specified at n2 is other than 0 to 256
...................................................................................................................................Error No. 4100
• When the number of readout comments in a single scan specified at n3 is other than 0 to 256
...................................................................................................................................Error No. 4100
• When exceeding the maximum value of the device in which stores comment data to be readout
...................................................................................................................................Error No. 4101
• When S(P). SFCTCOMR instruction is executed to the comment file in ATA card
...................................................................................................................................Error No. 4130
[Program Example]
(1) This program reads 2 comments associated with steps being activated at the SFC block No.1
when X1 is turned ON, and stores those to the storage device after D0. (The number of
comment to be read in a single scan is also set in 2.)
The interlock ladders to perform "batch write of SFC program in RUN status" or "write of
comment file in RUN status" are included in the following program.
aX0 & bSM735
oY0
sM0
aX1 & bM0
SP.SFCTCOMR K1 D0 K2 K2 M1
0
0
1
2
2
When step is designated by sequence program
[Ladder Mode] [List Mode]
Steps
Write enable flag
in RUN status
Comment readout instruction
executing flag
Instruction Device
Write execution command
in RUN status
Execution command of
SP.SFCTCOMR instruction
[Procedure for "batch writes of SFC program in RUN status" or "write of comment file in RUN status"]
1) Turns ON the X0 (write execution command in RUN status).
2) M0 (write enable flag in RUN status) is turned ON when SP.SFCTCOMR instruction is
deactivated.
3) Turns OFF the X0 (write execution command in RUN status).
4) Performs "batch write of SFC program in RUN status" or "write of comment file in RUN
status".
5) Turns OFF the M0 (write enable flag in RUN status) with test mode of GX Developer.
6) SP.SFCTCOMR instruction is executed again when M0 (write enable flag in RUN status) is
turned OFF.