EasyManuals Logo

Control Techniques UD70 User Manual

Control Techniques UD70
154 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
Page #81 background imageLoading...
Page #81 background image
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 00 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.

Table of Contents

Other manuals for Control Techniques UD70

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Control Techniques UD70 and is the answer not in the manual?

Control Techniques UD70 Specifications

General IconGeneral
BrandControl Techniques
ModelUD70
CategoryControl Unit
LanguageEnglish

Related product manuals