Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

2 Instruction Descriptions
The following example for the COS instruction is for when In is REAL#3.141592. The value of vari-
able abc will be REAL#−1.0.
LD
REAL#3.141592
Additional Information
• Use the RadToDeg and DegToRad instructions (page 2-172) to convert between degrees and radi-
ans.
• If In for the TAN instruction is nπ/2, when n is an integer, then the value of Out will be positive or neg-
ative infinity. Use the CheckReal instruction (page 2-209) to see if the value of Out is positive infinity
or negative infinity.
Precautions for Correct Use
• If the value of In is positive infinity, negative infinity, or nonnumeric data, the value of Out is nonnu-
meric data.
• If you pass an integer parameter to In, the data type is converted as follows:
Data type of parameter that is
passed to In
USINT, UINT, SINT, or INT
UDINT or DINT
ULINT or LINT
2-176
ST
abc:=COS(REAL#3.141592);
COS
EN
ENO
abc
In
Data type of In
REAL
LREAL
A building error will occur.

NJ-series Instructions Reference Manual (W502)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents