124
FM-3 Programming Module Reference Manual
Bit And
This operator may be used when it is desireable to AND each individual bit of a 32-bit
parameter.
var.var2 = var.var0 bitand var.var1
For example:
if var.var0 = 1000 and var.var1 = -1
var.var0 = 0000000000000000000001111101000b
var.var1 = 1111111111111111111111111111111b
var.var2 = 0000000000000000000001111101000b
Bit Or
This operator may be used when it is desireable to OR each individual bit of a 32-bit
parameter.
var.var2 = var.var0 bitor var.var1
For example:
if var.var0 = 1000 and var.var1 = -10000
var.var0 = 0000000000000000000001111101000b
var.var1 = 1111111111111111101100011110000b
var.var2 = 1111111111111111101101111111000b
Label:
The Label: instruction is used in conjunction with the GoTo instruction to cause program flow
to transfer to a specified location within a program. The destination label is allowed to be
above or below the GoTo instruction within the same program. It is not possible to GoTo a
label outside of the program containing the GoTo instruction, nor is it possible to use a GoTo/
Label: to exit out of a For Count/Next loop. In either of these conditions, a RedDot error will
be generated.
The Label to which program flow transfers is a string of up to 50 characters in length and can
be made up of any alphanumeric character. The label name must not start with a number, and
must end with a colon character “:”. When using the Label: instruction, a “:” will be
automatically inserted for the user.
Labels are not case sensitive.
Example:
Start:
Index.1.Initiate
Wait For Index.AnyCommandComplete
If (DriveInput.2 = ON) Then
GoTo Start: ‘Go to Start label if Input2 on
EndIf
Содержание FM-3
Страница 2: ......
Страница 14: ...xii ...
Страница 16: ...2 FM 3 Programming Module Reference Manual Figure 2 FM 3 Programming Module Features ...
Страница 128: ...114 FM 3 Programming Module Reference Manual ...
Страница 156: ...142 FM 3 Programming Module Reference Manual ...
Страница 196: ...182 FM 3 Programming Module Reference Manual ...
Страница 238: ...224 FM 3 Programming Module Reference Manual ...
Страница 251: ...237 Diagnostics and Troubleshooting Figure 97 Diagnostic Cable DGNE Diagram ...
Страница 262: ...248 FM 3 Programming Module Reference Manual ...
Страница 264: ...250 FM 3 Programming Module Reference Manual AX4 CEN CDRO ...
Страница 265: ...251 Specifications Cable Diagrams ...
Страница 266: ...252 FM 3 Programming Module Reference Manual SNCE XXX Cable SNCDD 001 5 Cable ...
Страница 267: ...253 Specifications SNCO 003 Cable SNCI 003 Cable ...
Страница 268: ...254 FM 3 Programming Module Reference Manual SNCLI 003 Cable ...
Страница 271: ...257 Specifications CDRO XXX Cable 8 9 24 23 38 37 11 12 34 16 14 15 29 4 19 26 40 18 17 31 33 43 44 41 27 ...
Страница 272: ...258 FM 3 Programming Module Reference Manual TIA XXX Cable DDS XXX Cable ...
Страница 274: ...260 FM 3 Programming Module Reference Manual CMDS XXX Cable CMMS XXX Cable ...
Страница 275: ...261 Specifications CFCS XXX Cable ...
Страница 276: ...262 FM 3 Programming Module Reference Manual CFCO XXX Cable ...
Страница 277: ...263 Specifications CFOS XXX Cable ...
Страница 278: ...264 FM 3 Programming Module Reference Manual ...
Страница 286: ...272 FM 3 Programming Module Reference Manual ...
Страница 290: ...276 FM 3 Programming Module Reference Manual ...
Страница 291: ......