Omron NJ-series User Manual page 264

Machine automation controller cpu unit software
Hide thumbs Also See for NJ-series:
Table of Contents

Advertisement

Restriction
• You cannot create closed loops or intersect connecting lines.
Example:
FB1
EN
IN1
IN2
 NOT Inputs
You can reverse the value of a BOOL input variable when you input it to an instruction.
NOT input
(BOOL)
IN
TRUE→FALSE
FALSE→TRUE
Inline ST
 Introduction
Inline ST is a ladder diagram programming element in which you can write ST language code in a
box called an inline ST box (a blank text input area) within a ladder diagram. This allows you to eas-
ily code numeric data processing and text string processing within ladder diagrams. The connecting
line to an inline ST box becomes its execution condition. The ST code inside of the box is executed
based on that connecting line. Refer to the following figure.
Execution Condition for Inline ST
i1
Inline ST is treated as a rung element in a ladder diagram. Therefore, unlike functions and function
blocks, they have no input, output, or in-out variables.
 Restrictions for Inline ST
You can write ST language code in inline ST boxes.
NJ-series CPU Unit Software User's Manual (W501)
ENO
EN
OUT1
IN
OUT2
NG
No closed loops
FB
(BOOL)
Q
i2
taiseki := 4.0 * 3.14 * radius *radius * radius / 3.0;
FB2
ENO
OUT
Enter the ST language code here.
6 Programming
Inline ST
Inline ST box
6-77
6

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents