EasyManua.ls Logo

Omron NJ Series

Omron NJ Series
668 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6-77
6 Programming
NJ-series CPU Unit Software User’s Manual (W501)
6-5 Programming Languages
6
6-5-2 Ladder Diagram Language
Restriction
You cannot create closed loops or intersect connecting lines.
Example:
NOT Inputs
You can reverse the value of a BOOL input variable when you input it to an instruction.
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.
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.
Inline ST
FB2
EN ENO
IN OUT
EN ENO
IN1 OUT1
IN2 OUT2
FB1
No closed loops
NG
NOT input
FB
(BOOL) (BOOL)
TRUEFALSE
FALSETRUE
Q
IN
i1 i2
taiseki := 4.0 * 3.14 * radius *radius * radius / 3.0;
Inline ST
Execution Condition for Inline ST
Inline ST box
Enter the ST language code here.

Table of Contents

Other manuals for Omron NJ Series

Related product manuals