CTH200 Series PLC User Manual
<Note>
1)The counter status bit is only valid in interrupt program triggered by HSC event.
2)Do not reset new current value in program when using the HSC external reset interrupt event,
and re-enable the counter in the interrupt program connected to the event, which will result
serious errors.
SMB66 to SMB85: PTO/PWM register
SMB66 to SMB85 are used to monitor and control the pulse chain output and PWM functions of
PLC (pulse) commands. Detailed description is shown in the following table:
PTO0 envelope termination: 0=no error, 1=terminate for
incremental error
PTO0 envelope termination: 0=terminate not by user command;
1=terminate by user command
PTO0 pipe overflow(clear by system when using external
envelope, or by user program): 0=no overflow, 1=overflow
PTO0 free bit: 0=PTO busy, 1=PTO free
Control pulse string output and PWM of Q0.0
PTO0/PWM0 update cycle: 1=write new cycle
PWM0 update pulse width: 1=write new pulse width
PTO0 update pulse quantity: 1=write new pulse quantity
PTO0/PWM0 reference time unit: 0=1 μs/grid, 1=1 ms/grid
Synchronous update PWM0: 0=asynchronous update,
1=synchronous update
PTO0 operation: 0= single segment operation(cycle and pulse
store in SM storage), 1=multiple segment operation(envelope
table involved in V storage area)
PTO0/PWM0 mode selection: 0=PTO, 1=PWM
PTO0/PWM0 valid bit: 1=valid
PTO0/PWM0 cycle(2~65, 535 time standard)
PWM0 pulse width (0~65, 535 time standard )
PTO0 pulse count (1~232 --1)
PTO1 envelope termination: 0=no error, 1=terminate for
incremental error
PTO1 envelope termination: 0=terminate not by user command;
1=terminate by user command
PTO1 pipe overflow(clear by system when using external
envelope, or by user program): 0=no overflow, 1=overflow