EasyManua.ls Logo

Kinco HP043-20DT - PTO Operations

Kinco HP043-20DT
60 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Kinco-HP
User Manual
51
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.
Q0.0
Q0.1
Q0.4
Description
SM66.0
SM76.0
SM96.0
Reserved
SM66.1
SM76.1
SM96.1
Reserved
SM66.2
SM76.2
SM96.2
Reserved
SM66.3
SM76.3
SM96.3
PWM idle: 0=No, 1=Yes
SM66.4
SM76.4
SM96.4
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.
SM66.5
SM76.5
SM96.5
PTO profile terminated due to user command:
0=No, 1=Yes
SM66.6
SM76.6
SM96.6
Reserved
SM66.7
SM76.7
SM96.7
PTO idle: 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:

Related product manuals