Rockwell Automation 1771-DB Basic Module User Manual - Series A User Manual

Page 5

Advertising
background image

Table of Contents

iv

5.4.26 Statement: POP[var]

39

. . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.4.27 Statement: REM

40

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.4.28 Statement: RETI

41

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.4.19 Statement: ST@ [expr]

41

. . . . . . . . . . . . . . . . . . . . . . . . . . .

5.4.30 Statement: STOP

41

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.4.31 Statement: STRING

42

. . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.5 Description of Arithmetic, and Logical Operators

and Expressions

43

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.5.1 Dual Operand (dyadic) Operators

43

. . . . . . . . . . . . . . . . . . . .

5.5.1.1 Comments on logical operators .AND.,.OR. and .XOR.

44

. .

5.5.2 Unary Operators

45

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.5.2.1 General Purpose Operators

45

. . . . . . . . . . . . . . . . . . . . .

5.5.2.2 Log Functions

46

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.5.2.3 Trig Functions

46

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.5.2.4 Comments on Trig Functions

47

. . . . . . . . . . . . . . . . . . . .

5.5.3 Understanding Precedence of Operators

48

. . . . . . . . . . . . . . .

5.5.4 How Relational Expressions Work

49

. . . . . . . . . . . . . . . . . . . .

5.6 Special Operators

50

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.6.1 Special Function Operators

50

. . . . . . . . . . . . . . . . . . . . . . . .

5.6.1.1 GET

50

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.6.1.2 TIME

50

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.6.2 System Control Values

52

. . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.6.2.1 MTOP

52

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.6.2.2 LEN

52

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.7 Data Transfer Support Routines

52

. . . . . . . . . . . . . . . . . . . . . .

5.7.1 Update Block-Transfer-Read Buffer (timed) – CALL 2

53

. . . . . .

5.7.2 Update Block-Transfer-Write Buffer (timed) – CALL 3

53

. . . . . .

5.7.3 Set Block-Transfer-Write Length – CALL 4

54

. . . . . . . . . . . . . .

5.7.4 Set Block-Transfer-Read Length – CALL 5

54

. . . . . . . . . . . . .

5.7.5 Update Block-Transfer-Write Buffer – CALL 6

54

. . . . . . . . . . .

5.7.6 Update Block-Transfer-Read Buffer – CALL 7

54

. . . . . . . . . . .

5.7.7 Disable Interrupts – CALL 8

54

. . . . . . . . . . . . . . . . . . . . . . . .

5.7.8 Enable Interrupts – CALL 9

55

. . . . . . . . . . . . . . . . . . . . . . . .

5.7.9 Input Call Conversion Routines

55

. . . . . . . . . . . . . . . . . . . . . .

5.7.9.1 3-Digit Signed, Fixed Decimal BCD to Internal

Floating Point ”XXX – CALL 10

55

. . . . . . . . . . . . . . . . . . . . . .

5.7.9.2 16-Bit Binary (4-digit hex) to Internal Floating

Point – CALL 11

55

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5.7.9.3 4-Digit Signed Octal to Internal Floating

Point ”XXXX – CALL 12

55

. . . . . . . . . . . . . . . . . . . . . . . . . . .

5.7.9.4 6-Digit, Signed, Fixed Decimal BCD to Internal

Floating Point ”XXXXXX – CALL 13

56

. . . . . . . . . . . . . . . . . . .

5.7.9.5 4-Digit BCD to Internal Floating Point XXXX – CALL 17

56

. .

5.7.10 Output Call Conversion Routines

56

. . . . . . . . . . . . . . . . . . .

5.7.10.1 Internal Floating Point to 3-Digit, Signed, Fixed Decimal

BCD ”XXX – CALL 20

57

. . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Advertising