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

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

Advertisement

(abc[0,0],abc[0,1])=(1.0,5.0)
Difference between the PWLApprox and PWLApproxNoLineChk
Instructions
The PWLApprox and PWLApproxNoLineChk instructions are different in whether the validity of In and
Line[] are checked. This also makes the processing times different. The specifications of both instruc-
tions are given in the following table.
Instruction
PWLApprox
PWLApprox
NoLineChk
PWLApproxNoLineChk and PWLLineChk Instructions
Although the PWLApproxNoLineChk instruction does not check the validity of In and Line[], the pro-
cessing time is short. Therefore, if you can be sure that the input variables are valid, it is better to use
the PWLApproxNoLineChk instruction rather than the PWLApprox instruction.
The PWLLineChk instruction (page 2-432) checks the contents of Line[] to see if the X coordinates are
in ascending order. Therefore, you can shorten the processing time if you normally use the PWLAp-
proxNoLineChk instruction and combine the PWLLineChk instruction with it only when you cannot
ensure that the X coordinates in Line[] are in ascending order.
Additional Information
You can also shorten the processing time by restricting the range of elements in the broken line data
array that is used for approximation conversion.

NY-series Instructions Reference Manual (W560)

Y
(abc[1,0],abc[1,1])=(2.0,6.0)
Out=def=LREAL#4.0
Checks
• The contents of Line[] are checked to make
sure the elements are in ascending order of
the X coordinates.
• If In and Line[] are integers, In and the ele-
ments of Line[] are checked to make sure they
are not nonnumeric data, positive infinity, or
negative infinity.
No checks are performed.
(abc[3,0],abc[3,1])=(5.0,3.0)
(abc[2,0],abc[2,1])=(4.0,2.0)
In=LREAL#3.0
Processing when the data is
• An error occurs.
• The value of ENO will be
FALSE.
• The value of Out will not
change.
• An error will not occur.
• The value of ENO will be
TRUE.
• A valid value may not be out-
put to Out.
2 Instruction Descriptions
X
Process-
not valid
ing time
Long
Short
2
2-429

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents