Kinco-HP
User Manual
47
PTO/PWM generator in the user program.
There are two procedures for using PTO: Configure related control registers and initialize PTO.
Execute PLS instruction.
Use SM0.1 (the first scan memory bit) to call a subroutine that contains the initialization
instructions. Since SM0.1 is used, the subroutine shall be executed only once, and this reduces
CPU scan time and provides a better program structure.
Execute the PTO (Single-Segment Operation)
1) Set control byte SMB67 according to the desired operation.
For example, SMB67 = B#16#85 indicates:
Enable the PTO/PWM function
Select PTO operation
Select 1μs as the time base
Allow updating the pulse number and cycling time.
2) Set SMW68 according to desired cycle time.
3) Set SMD72 according to desired pulse number.
4) (Optional) use ATCH to attach the PTO0-complete event (event 28) to an interrupt routine
to respond in real time to a PTO0-complete event.
5) Execute the
PLS
instruction to configure PTO0 and start it.
Changing the PTO Cycle Time (Single-Segment Operation)
Follow these steps to change the PTO cycle time.
1) Set control byte SMB67 according to the desired operation.
For example, SMB67 = B#16#81 indicates:
Enable the PTO/PWM function
Select PTO operation
Select 1μs as the time base
Allow updating the cycle time value.
Содержание HP043-20DT
Страница 8: ...Kinco HP User Manual 8 1 4 4 Dimension Dimension 132 102 40 1mm Cutout size 119 93mm...
Страница 22: ...Kinco HP User Manual 22...
Страница 23: ...Kinco HP User Manual 23...
Страница 25: ...Kinco HP User Manual 25...
Страница 26: ...Kinco HP User Manual 26 2 It will show settings when mouse at the right side of Window then click settings...
Страница 27: ...Kinco HP User Manual 27 3 Click update and recovery in the PC settings...
Страница 28: ...Kinco HP User Manual 28 4 Click restart now at advanced startup 5 Click advanced options...
Страница 29: ...Kinco HP User Manual 29 6 click startup settings 7 Click restart...
Страница 31: ...Kinco HP User Manual 31 10 Figure as below after successful...