Download AMD K3780E-D Specifications
Transcript
Appendix E: High-speed Input and Pulse Output Features Program Example (cont’d) SP0 Profile / Target Velocity Select Direction LD K2000 OUT V2320 LDD K80000000 OUTD V2321 Set Velocity Load the constant K2000 which is required to select Velocity Profile. This data word contains no velocity information in the case of velocity mode. Output this constant to V2320, the location of the Profile Select setup register . Load the constant K80000000 which selects CCW direction for Velocity Profiles. Don’t forget to use double word size (8-digit BCD position value). Output this constant to V2321 and V2322, the location of the Target Position double-word register. Load the constant K10 which is required to select an initial velocity of 100 pps (uses x10 multiplier). LD K10 OUT V2323 Output this constant to V2323, the location of the velocity parameter register . After the program is running, we can write here again, using discrete input switches. Start Profile X1 Y0 OUT We use a spare filtered input to allow the operator to start the profile. When the operator turns X1 ON, logical output Y0 starts the profile. The operator must maintain X1 on until the profile is complete. Go Slow X2 LD K50 OUT V2323 Load the constant K50 which is required to select a velocity of 500 pps when the operator closes X2. Output this constant to V2323, the location of the velocity parameter register . The speed will change immediately. Go Moderately X3 Go Fast X4 LD K200 OUT V2323 LD K600 OUT V2323 Load the constant K200 which is required to select a velocity of 2000 pps when the operator closes X3. Output this constant to V2323, the location of the velocity parameter register . The speed will change immediately. Load the constant K600 which is required to select a velocity of 6000 pps when the operator closes X4. Output this constant to V2323, the location of the velocity parameter register . The speed will change immediately. DL05 Micro PLC User Manual, 6th Edition, Rev. C 1 2 3 D E 6 7 8 9 10 11 1 1 14 A B C D E–41