13 / 17
Program Listing :( enter the program edit state)
00 OUT nnn0 ; Let the buzzer tweet for a short time
01 SPEED 39000 ; Assign the speed as 39KHz
02 G-LEN 01234567 ; Motor runs forward 1234567 step
03 OUT 101n ; Making three outputs for 101 state
04 DELAY 0055900 ; delaying the time for 55.9 seconds
05 OUT n11n ; let the last two outputs state is 11
06 PAUSE ; Program pause here
07 GOTO -0000888 ; let the motor return to the starting point on the other side that is the 888
step positions
08 OUT nnn1 ; Let the buzzer tweet for a long time
09 END ; the program ends!
Example 3:
Operating Requirements: (Ignore the parameter setting) One object, from zero that run for
2.9KHz speed to run forward 100 step (this point as the reference point of the object); After the
reference point stopped, the output is 010; Detect the input, if INI = 0, the motor will return to
zero at the same speed. If INI ≠ 0, the motor will run forward 10,000 steps at a speed of 15KHz
and let buzzer alarm for a short time; And then will return to the reference point at a speed of
35KHz. If INI = 0, then return to zero, Otherwise, continue to follow the way of the first to
run.After return to zero ,The buzzer will alarm for a long time.
Program Listing :( enter the program edit state)
00 SPEED 02900 ;Assign the speed as 2.9KHz
01 G-LEN 00000100 ;Motor runs forward 100 steps
02 OUT 010n ; Let output state is 010
03 J-BIT 11 1 0 ;
04 SPEED 15000 ; IN1 ≠ 0, then assign the new speed as 15KHz
05 G-LEN 00010000 ; Motor runs forward 10000 steps again
06 OUT nnn0 ; Let buzzer alarm for a short time
07 SPEED 35000 ; Assign the speed as 35KHz, For setting the speed of returning to the
reference point
08 GOTO 00000100 ; Motor return to the reference point at the speed of 15KHz
09 LOOP 03 00000 ; Motor will run for an infinite loop ,until IN1 = 0, it will return to zero
10 SPEED 02900 ; Assign the speed of returning to zero as 2.9KHz
11 GOTO 00000000 ; Motor returns to zero at the of speed 2.9KHz
12 OUT nnn1 ; After return to zero ,The buzzer will alarm for a long time
13 END ; the program ends!
Example 4:
Operating Requirements: (Ignore the parameter setting) One object, from zero that run for a
high speed to run forward Until it came to the front of the limit switch, Then return to zero at the
same rate, the program ends. (Assume the system beginning frequency is 500Hz, the distance