Kinco-HP
User Manual
All the default value for control byte, cycle time and pulse number are 0.The way to modify
configuration of PTO/PWM is that configure related control registers first, if it is PTO multiple
segment pulse, it also needs to configure profile table, and then execute PLS instruction.
Each PTO/PWM generator also provides a status bytes in SM area, user can get the status
information of PTO/PWM generator from the status bytes, as shown in following table.
Whether the cycle time or pulse number of PTO is
wrong: 0=No, 1=Yes
Note: Cycle time and pulse number must be
greater than 1.
PTO profile terminated due to user command:
0=No, 1=Yes
The PTO idle bit or PWM idle bit indicate the completion of the PTO or PWM output.
3.2.4.2.3 PTO Operations
The fallowing takes PTO0 as an example to introduce how to configure and operate the
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: