Omron CJ - INSTRUCTIONS Reference Manual page 1179

Table of Contents

Advertisement

Precaution
• Specify the number displayed to the right of the SFC program in the workspace for the SFC task
number, as shown below.
As shown below, SFC programs can be created in interrupt tasks and executed as extra tasks.
When using an extra task, specify the SFC task number as shown above for the operand data. For
the program shown above for extra task 1 (interrupt task 1), the SFC task number specification
would be as follows:
• These instructions cannot be used for the task in which they are programmed. For example, if the
instruction is in cyclic task 0 (task number 0), a task number of 0 cannot be specified.
• This instruction cannot be input or displayed on a Programming Console. "?" will be displayed.
• The step timers will continue to operate for steps paused with the SFCPR or SFCPRN instruction.
The displayed time, however, will not change.
• Step timers may not operate correctly when the SFCPR or SFCPRN instruction is used.
SFCPR
• Do not execute the SFCPR instruction for an SFC task that has been ended (see note.). Even if the
SFCPR instruction is executed for an SFC task that has been ended, the outputs will be reset and the
task will not be started. If this happens, you can execute SFCON again to start the task.
Note Use the Task Flag to prevent the SFCPR instruction from being executed for an SFC task that has been
ended. This is not possible, however, when using an SFC program in an extra task.
• If the SCFPR instruction is executed for a step for which status has changed in the same cycle, the
outputs will be reset. This means that the final scan and the P0 action in steps that became inactive
will not be executed.
• If the SCFPR instruction is executed for a step for which status has changed in the same cycle and
then the SFCON instruction is executed, the SFC task will be started, but the P and P1 actions in
steps that became active will not be executed. Refer to the SYSMAC CS/CJ Series Programmable
Controllers Operation Manual SFC Programming (W469) for details.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
SFCPR
&8001
Interrupt task 01
&8001
3. Instructions
3
1141

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents