| The Motion Group, Inc. | |
| Home | About Us | Basics | Download | Info Request | Links | Contact | Sitemap |
|
Stepper Motors Linear Actuators [PDF file - 700k] Pico Droplet NEW Syringe Pumps Ready-To-Steptm Black Box Systems - Single Axis - Multiple Axis OEM Card sets - Multiple Axis - Motor Drivers CNC Retro Kits High Res NEW Slide Systems Videos Software
|
See program example. CY545 Command Set SummaryA val 24 set position counter to At value B bit# set or clear(/B) user output Bit C set Continuous stepping mode D val 16 Delay for value in milliseconds E Enter commands to user mem F val First (starting) speed of motor G motor Goes the Number of steps (see N) H bit # seek Home, using specified Bit I Initialize 545; software reset J add Jump to address on mem page L cnt add Loop to address for count value N num 24 Number of steps; see Go O mode set mOdes of CY controller P val 24 moves to an absolute Position Q Quit Enter commands to mem R val set Ramp (top) speed of motor S val Slope (acceleration) of F to R T bit # add jump to add unTil Bit matches W bit # Wait at add until Bit matches X eXecute commands at Y add Y add 16 set mem address counter to Y Z cnt 16 add ZillionLoops to add for count value 0 (number) end of program or stop program + (plus) set CW direction for Go move -(minus) set CCW direction for Go move /(forslash) negate prefix for/Bit commands ? command send back command val to host “message” send back message to host Commands are upper case ASCII letters, followed by a space, and a value if required.
Values without a suffix are 0 to 255 max; 16 suffix is 65535 (64K) max; 24 suffix
is 16777215 (16 Meg) max. Add is 64K max. Bit # is 0 to 7. Ramp is 30K pps max.
Typical programming Example.First, open a serial port, then send or type the commands.) Note: the demo disk will automatically open the comm1 serial port and prompt:: Enter Command:
> Type two carriage returns (enter key)
> to set the baud rate.
?P Ask for current position
P=000000 Response is P=0
N 200 Set number of steps = 200
+ Set direction CW
G Motor goes 200 steps
?P Ask for position
P=000200 Response is P=200
P 1000 Motor goes CW to position 1000
P 0 Motor returns CCW to position 0
E Enter the following to memory;
location y = 0
+ Direction = CW
N 500 Number of steps = 500
R 125 Top speed value (5150 steps / sec.)
G Motor goes number of steps
/B 2 Signal glue machine with I/O bit 2
D 2000 Wait 2 sec for glue cycle
L 10,0 Loop 10 times back to y = 0
P 0 Return motor back to position y = 0
W 13 Wait for glue machine start signal on
I/O bit 3
J 0 Jump to Y0 and repeat entire program
(loop forever)
Q Quit saving program commands
Y 0 Reset memory address back to Y0
X Execute the program
Note:
If auto-start switch is set,
program will run from power-on.
|
| Home | About Us | Basics | Download | Info Request | Links | Contact | Sitemap |