4Software
List of commands
4-82
Pr
ogra
m
con
tr
ol
Branching
Branches unconditionally to the designated place.
GoTo 120
Branches according to the designated conditions.
If M1=1 Then GoTo *L100
Else GoTo 20
End If
Repeats until the designated end conditions are satisfied.
For M1=1 TO 10
Next M1
Repeats while the designated conditions are satisfied.
While M1<10
Wend
Branches corresponding to the designated expression value.
On M1 GoTo *La1, *Lb2, *Lc3
Executes program block corresponding to the designated expression
value..
Select
Case 1
Break
Case 2
Break
End Select
Moves the program process to the next line.
Skip
Impact detection
Set to enable/disable the impact detection.
ColChk ON/OFF
Set the detection level of the impact detection.
ColLvl 100,80,,,,,,
Subroutine
Executes the designated subroutine. (Within program)
GoSub *L200
Returns from the subroutine.
Return
Executes the designated program.
CallP "P10",M1,P1
Defines the program argument executed with the CALLP command.
FPrm M10,P10
Executes the subroutine corresponding to the designated expression
value.
On M1 GoSub *La1, *Lb2, *Lc3
Interrupt
Defines the interrupt conditions and process.
Def Act 1, M1=1 GoTo *L100
Enables/disables the interrupt.
Act 1=1
Defines the start line of the program to be executed when an interrupt is
generated from the communication line.
On Com(1) GoSub *L100
Enables the interrupt from the communication line.
Com(1) On
Disables the interrupt from the communication line.
Com(1) Off
Stops the interrupt from the communication line.
Com(1) Stop
Wait
Designates the wait time, and the output signal pulse output time. (0.01s
unit)
Dly 0.5
Waits until the variable becomes the designated value.
Wait M_In(1)=1
Stop
Stops the program execution.
Hlt
Generates an error. During program execution, continue, stop or servo
OFF can be designated.
Error 9000
End
Ends the program execution.
End
Han
d
Hand open
Opens the designated hand.
HOpen 1
Hand close
Closes the designated hand.
HClose 1
Input/ou
tput
Assignment
Defines the input/output variables.
Def IO PORT1=BIT,0
Input
Retrieves the general-purpose input signal.
M1=M_In(1)
Output
Calls out the general-purpose output signal.
M_Out(1) =0
Pa
ra
llel e
xe
cut
io
n
Mechanism designa
-
tion
Acquires the mechanism with the designated mechanism No.
GetM 1
Releases the mechanism with the designated mechanism No.
RelM 1
Selection
Selects the designated program for the designated slot.
XLoad 2,"P102"
Start/stop
Carries out parallel execution of the designated program.
XRun 3,"100",0
Stops parallel execution of the designated program.
XStp 3
Returns the designated program's execution line to the head and enters
the program selection enabled state.
XRst 3
Type
Class
Function
Input format (example)
Содержание MELFA SQ Series
Страница 2: ......
Страница 11: ...Contents iii Page 7Appendix Appendix 98 Appendix 1 Specifications discussion material Appendix 98 ...
Страница 110: ......
Страница 111: ......
Страница 112: ......
Страница 113: ......
Страница 114: ......
Страница 115: ......
Страница 116: ......
Страница 117: ......
Страница 118: ......
Страница 119: ......
Страница 120: ......
Страница 121: ......
Страница 122: ......
Страница 123: ......
Страница 124: ......
Страница 125: ......
Страница 126: ......
Страница 127: ......
Страница 128: ......
Страница 129: ......
Страница 130: ......
Страница 131: ......
Страница 132: ......
Страница 133: ......
Страница 134: ......
Страница 135: ......
Страница 136: ......
Страница 137: ......