K
K
K
K inco
inco
inco
inco -K
-K
-K
-K S
S
S
S series
series
series
series
27
PTO provides a square wave (50% duty cycle) output, and you can control the cycle time and the number of
the output pulses . The unit of cycle time is microsecond(us) or millisecond(ms).The maximum value of cycle
time is 65535.The range of pulse number is 2~4,294,967,295.If the specified pulse number is less than 2, then
KInco-K S will set related error bit and prohibit the output.
PTO function provides single segment of pulse and multiple segment of pulse.
• Single
Single
Single
Single segment
segment
segment
segment pulse
pulse
pulse
pulse
In single segment pulse mode, it only executes pulse train output once after executing PLS instruction.
• Multiple
Multiple
Multiple
Multiple segment
segment
segment
segment pulse
pulse
pulse
pulse
In multi-segment pulse mode, CPU automatically reads the configurations of each PTO segment from a
profile table located in V area and executes the related PTO segment.
The length of each segment is 8 bytes, including a cycle time value (16-bit, WORD ) , a reserved value (It
is not used now,16-bit, INT) , and a pulse number value (32-bit, D WORD) .Thereof, all the pulse output
frequency are the same in same segment. It uses PLS instruction to start multiple segment pulse.
In this mode , t he starting address of the profile table is stored in SMW168 (corresponding to PTO0 ) ,SMW178
(corresponding to PTO1) and SMW268(corresponding to PTO2) .T ime base is configured by SM67.3
(corresponding to PTO0) ,SM77.3 (corresponding to PTO1) and SM87.3 (corresponding to PTO2) . The time
base can be in either microsecond or millisecond. All cycle values in the profile table must use same time base,
and cannot be modified when the profile is executing.
The following table describes the format of the profile table.
Byte
Byte
Byte
Byte offset
offset
offset
offset
1
1
1
1
Length
Length
Length
Length Segment
Segment
Segment
Segment Description
Description
Description
Description
0 8-bit The number of segments (1 to 64)
1 16-bit
1
Initial cycle time (2 to 65535 times of the time base)
3 16-bit Reserved
5 32-bit Pulse number(1 to 4,294,967,295)
9 16-bit
2
Initial cycle time (2 to 65535 times of the time base)
11 16-bit Reserved
13 32-bit Pulse number(1 to 4,294,967,295)