UD70
Issue code: 70nu2
Reference
7-9
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 [
CALL
].
Example 1
ENCODER{
CALL diglk
_
encoder: // Standard application Task
//Digital Lock
...Rest of ENCODER Task
}
Example 2
INITIAL{
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
SIN
instruction and
TAN
instruction.
Example
value = COS (3.1416)
CRC16
Syntax
CRC% = CRC16 (character%, CRC%)
This function is used to calculate a 16-bit
CRC
(cycle redundancy check,
commonly used in serial communications protocols).
Содержание UD70
Страница 6: ......
Страница 14: ...UD70 Issue code 70nu2 2 6 Installation...
Страница 42: ...UD70 Issue code 70nu2 4 20 DPL programming...
Страница 98: ...UD70 Issue code 70nu2 7 22 Reference...
Страница 142: ...UD70 Issue code 70nu2 9 6 Diagnostics...