4 - 101 4 - 101
4 SFC PROGRAM CONFIGURATION
MELSEC-Q
(11) While SFC program is not executed, reading comments is not performed even if executing
S(P).SFCSCOMR instruction.
Executing S(P).SFCSCOMR instruction at a status without SFC program being executed, 0
is stored to "the total number of steps (
D1
+0)" and "the number of steps that have read
comments (
D1
+1)".
At this time, the device specified in
D2
turns ON for 1 scan.
(12) With S(P). SFCSCOMR instruction, comments for the normal SFC program can be read.
Comments of a SFC program to control program execution are not read.
Executing S(P).SFCSCOMR instruction specifying a SFC program for program execution
control, 0 is stored to "the total number of transit conditions (
D1
+0)" and "the number of steps
that have read comments (
D1
+1)".
At this time, the device specified in
D2
turns ON for 1 scan.
(13) S(P).SFCSCOMR instruction cannot be executed simultaneously with S(P).SFCSCOMR
instruction or S(P).SFCTCOMR instruction.
Executing S(P).SFCSOMR, and if S(P).SFCSCOMR instruction or S(P).SFCTCOMR
instruction is executed before reading comments completed, the 2nd instruction will be de-
activated.
REMARKS
(1) Make sure to use comments to be read with S(P).SFCSCOMR after the device
specified at
D2
turns ON.
Comments to be read before the device specified at
D2
turns ON become an
indefinite value.
(2) If the number of steps is larger than that of comments (n3) read in a single scan,
the active step comments are divided into the number to be read in a single scan.
Counting the total number of steps is also performed with the same comment
number (n3) for 1 scan.
In case transition conditions are remained without being counted when reading
comments completed, the counting will be continued for the remained.
Because of this, the number of scans calculated in the following formula is
required.
(Comments to be actually stored are the same points stored in (
D1
+1)
The number of scans until S(P).SFCSCOMR
instruction completed
The total number of steps
(
D1 +0)
The number of comments
to be read at 1 scan (n3)
: It becomes a round-up below the decimal point.
(3) Make sure to perform "batch write of SFC program in RUN status" or "write of
comment file in RUN status" with a status of S(P).SFCSCOMR instruction not
being executed.
In addition, make sure not to execute S(P).SFCSCOMR during "batch write of
SFC program in RUN status" or "write of comment file in RUN status".