302
10 SFC CONTROL INSTRUCTION
10.1 SFC Step Comment Read
Processing details
This function reads step comments being activated in the SFC block specified at (n1), by the number of comment specified at
(n2), and stores those to the device number of after specified at (d1).
Precautions
• For High Performance model QCPU, use the function version is B or later and the first five digits of the serial number are
'07012' or higher.
• For Process CPU and Redundant CPU, use the first five digits of the serial number are '07032' or higher.
• For Universal CPU, use the first five digits of the serial number are '12052' or higher. Q00UJCPU, Q00UCPU, Q01UCPU,
and Q02UCPU can not be used.
Program example
• This program reads 2 comments 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 (n3) in a single scan is also set in 2.)
[Structured ladder/FBD]
[ST]
IF((Var_Flag_Exe=TRUE) & (SM735=FALSE))THEN (*Online program change execution command*)
SET(TRUE, Var_Flag); (*Online program change enable flag*)
END_IF;
IF((Var_Flag_Inst=TRUE) & (Var_Flag=FALSE))THEN (*Execution command of SP_SFCSCOMR instruction*)
SP_SFCSCOMR(TRUE, 1, D0, 2, D1, M1);
END_IF;
Execution command
of SP_SFCSCOMR
instruction
Online program
change enable flag
Summary of Contents for MELSEC System Q
Page 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...
Page 2: ......
Page 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...
Page 309: ...I 307 MEMO ...
Page 315: ......