10.1 SFC Control Instruction
10.1.2 SFCTCOMR instruction
10-5
10
SFC CONTROL
INSTRUCTION
S_SFCTCOMR
S_SFCTCOMR
Function
This function reads comments of the transition condition 1 associated with steps activated in the
SFC block specified at with the number of comments specified at , and stores those to the
device number of after specified at .
Caution
• 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 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_SFCTCOMR instruction*)
SP_SFCTCOMR(TRUE, 1, D0, 2, D1, M1);
END_IF;
n1 n2
d1
n3
Execution command
of SP_SFCTCOMR
instruction
Online program
change enable flag