Changing The Pto Pulse Count-Single Segment Operation; Changing The Pto Cycle Time And The Pulse Count-Single Segment Operation - Siemens SIMATIC S7-200 System Manual

Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

Changing the PTO Pulse Count - Single Segment Operation
To change the PTO Pulse Count in an interrupt routine or a subroutine when using
single segment PTO operation, follow these steps:
1.
Load SMB67 with a value of 16#84 for PTO using microsecond increments (or
16#8C for PTO using millisecond increments). These values set the control
byte to enable the PTO/PWM function, select PTO operation, select either
microsecond or millisecond increments, and set the update pulse count value.
2.
Load SMD72 (double word size value) with the desired pulse count.
3.
Execute the PLS instruction to cause the S7-200 to program the PTO/PWM
generator. The CPU must complete any PTO that is in process before output
of the waveform with the updated pulse count begins.
4.
Exit the interrupt routine or the subroutine.
Changing the PTO Cycle Time and the Pulse Count - Single Segment Operation
To change the PTO Cycle Time and Pulse Count in an interrupt routine or a
subroutine when using single segment PTO operation, follow these steps:
1.
Load SMB67 with a value of 16#85 for PTO using microsecond increments (or
16#8D for PTO using millisecond increments). These values set the control
byte to enable the PTO/PWM function, select PTO operation, select either
microsecond or millisecond increments, and set the update cycle time and
pulse count values.
2.
Load SMW68 (word size value) with the desired cycle time.
3.
Load SMD72 (double word size value) with the desired pulse count.
4.
Execute the PLS instruction so that the S7-200 programs the PTO/PWM
generator. The CPU must complete any PTO that is in process before output
of the waveform with the updated pulse count and cycle time begins.
5.
Exit the interrupt routine or the subroutine.
S7-200 Programmable Controller System Manual
A5E00066097-02
SIMATIC Instructions
9-61

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents