CALL
Syntax
CALL program-label:
This is a flow control instruction which is used to execute a Standard
Application Program, or a user-defined Task. After the sub-routine has been
completed, the program returns to the line following the instruction [
Example 1
ENCODER{
CALL diglk
//Digital Lock
...Rest of ENCODER Task
}
INITIAL{
Example 2
CALL SETUP:
}
SETUP:{ //This is the name of the sub-routine
#1.21 = 0
}
Note
It is not possible to single-step through a user-defined
task.
The name of the sub-routine is case-sensitive.
COS
Syntax
result = COS(expression)
This mathematical function returns the cosine of an angle expressed in
radians. This function always returns a floating-point variable.
See
instruction and
SIN
Example
value = COS (3.1416)
CRC16
Syntax
CRC% = CRC16 (character%, CRC%)
This function is used to calculate a 16-bit
commonly used in serial communications protocols).
UD70
Issue code: 70nu2
_
encoder: // Standard application Task
instruction.
TAN
(cycle redundancy check,
CRC
Reference
].
CALL
7-9
Need help?
Do you have a question about the UD70 and is the answer not in the manual?