304
10 SFC CONTROL INSTRUCTION
10.2 SFC Transition Condition Comment Read
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_SFCTCOMR instruction*)
SP_SFCTCOMR(TRUE, 1, D0, 2, D1, M1);
END_IF;
Execution command
of SP_SFCTCOMR
instruction
Online program
change enable flag
Содержание MELSEC System Q
Страница 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...
Страница 2: ......
Страница 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...
Страница 309: ...I 307 MEMO ...
Страница 315: ......