Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

Y
(X
,Y
)
0
0
Using a Two-dimensional Array for Line[]
Line[0,0]
Line[0,1]
Line[1,0]
Line[1,1]
Line[2,0]
Line[2,1]
:
Line[Num-1,0]
Line[Num-1,1]
Notation Example
An example of determining whether the X coordinates are in ascending order in the broken line data
array abc[] with four elements is given below. The values of the elements of abc[] are given below for
when Num is UINT#4.
abc[0.0] = X
= LREAL#1.0, abc[0,1] = Y
0
abc[1.0] = X
= LREAL#6.0, abc[1,1] = Y
1
abc[2.0] = X
= LREAL#4.0, abc[2,1] = Y
2
abc[3.0] = X
= LREAL#5.0, abc[3,1] = Y
3
The X coordinates are not in ascending order, so the value of Out is FALSE.
LD
abc[0,0]
UINT#4

NY-series Instructions Reference Manual (W560)

(X
,Y
)
2
2
(X
Num-2
(X
,Y
)
1
1
(X
Using a Three-dimensional Array for Line[]
Line[0,0,0]
X
0
Line[0,0,1]
Y
0
Line[0,1,0]
X
1
Line[0,1,1]
Y
1
Line[0,2,0]
X
2
Line[0,2,1]
Y
2
:
:
X
Line[0, Num-1,0]
Num-1
Y
Line[0, Num-1,1]
Num-1
= LREAL#5.0,
0
= LREAL#6.0,
1
= LREAL#2.0,
2
= LREAL#3.0
3
PWLLineChk
def
EN
Line
Num
,Y
)
Num-2
,Y
)
Num-1
Num-1
X
X
0
Y
0
X
1
Y
1
X
2
Y
2
:
X
Num-1
Y
Num-1
ST
def:=PWLLineChk(abc[0,0], UINT#4);
2 Instruction Descriptions
2
2-433

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents