UD70
Issue code: 70nu2
Reference
7-5
7.2
Instructions and functions
The following instructions and functions may contain more than one form of
syntax. Where there is more than one form, the first is for use with integer
variables; the second is for use with floating-point variables. (See Chapter 4
DPL Programming).
ABS
Syntax
result% = ABS (expression%)
result = ABS (expression)
This mathematical function returns the absolute value of an expression
without taking into account either the negative or positive sign of the
expression (negative numbers are made positive).
Example
ABS(45.5 – 100) ;the output is 54.5
ANSIREAD
Syntax
result% = ANSIREAD (drive address%, “mnemonic”)
This is a 4-wire
RS485
port function which always returns an integer.
This function transmits a parameter read-request via the
ANSI
RS485
port to
a remote Drive or unit.
The Drive address is an integer expression, usually between 01 and 99.
The mnemonic is a string which contains the parameter number. The
format and length of this string depends on the remote Drive.
The function returns 11 if the read request was sent successfully, or 0
0 if the
message could not be sent (eg. transmission already in progress).
Note
The
ANSIREAD
instruction does not wait for a response from
the remote Drive.
Example
result% = ANSIREAD(12,”0122”) \\ read #1.22 from drive 12
See also Example ANSI commands in Chapter 6 Serial Communications.
Summary of Contents for UD70
Page 6: ......
Page 14: ...UD70 Issue code 70nu2 2 6 Installation...
Page 42: ...UD70 Issue code 70nu2 4 20 DPL programming...
Page 98: ...UD70 Issue code 70nu2 7 22 Reference...