Emerson Epsilon EP Drive 400518-01 Installationshandbuch Seite 119

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 240
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 118
107
Programming
var.var1 = 1111111111111111111111111111111b
var.var2 = 0000000000000000000001111101000b
BitOr
This operator may be used when it is desirable 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.
Examples:
Start:
Index.1.Initiate
Wait For Index.AnyCommandComplete
If (DriveInput.2 = ON) Then
GoTo Start:‘ Go to Start label if Input2 on
EndIf
DriveOutput.1 = ON
End
See GoTo instruction for additional examples.
GoTo
The GoTo instruction is used in conjunction with the Label: 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 character string 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 “:”.
Labels are not case sensitive.
Examples:
Do While (TRUE)
If (DriveInput.1 = ON) Then
GoTo RunIndex1: ‘Go to RunIndex1 label
Else
GoTo RunIndex2: ‘Go to RunIndex2 label
EndIf
RunIndex1: ‘If Input.1 is on, resume here
Index.1.Initiate
GoTo EndLoop: ‘GoTo EndLoop label
RunIndex2: ‘If Input.1 is off, resume here
Index.2.Initiate
EndLoop:
Wait For Index.AnyCommandComplete
Loop
See the Label: instruction for additional examples.
Seitenansicht 118
1 2 ... 114 115 116 117 118 119 120 121 122 123 124 ... 239 240

Kommentare zu diesen Handbüchern

Keine Kommentare