Siemens S7-200PLC Spezifikationen Seite 241

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 504
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 240
SIMATIC Instructions
9-65
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Example of Pulse Train Output Using Single Segment Operation
Define interrupt routine 3 to
be the interrupt for
processing PTO complete
interrupts.
Network 1
LD SM0.1
R Q0.0, 1
CALL 0
IN16#8D
MOV_B
OUT SMB67
EN
SM0.0
IN
500
MOV_W
OUT SMW68
EN
Set pulse count to 4 pulses.
Set cycle time to 500 ms.
IN4
MOV_DW
OUT SMD72
EN
INT3
ATCH
EN
EVNT19
Global interrupt enable.
PLS
EN
Invoke PTO operation.
PLS 0 => Q0.0
Q0.X0
Set up control byte:
- select PTO operation
- select ms increments
- set the pulse count and
cycle time values
- enable the PTO function
LAD STL
SM0.1
On the first scan,
reset image
register bit low, and
call subroutine 0.
Q0.0
R
ENI
Network 1
Network 1
1
Network 1
LD SM0.0
MOVB 16#8D, SMB67
MOVW 500, SMW68
MOVD 4, SMD72
ATCH 3, 19
ENI
PLS 0
MOVB 16#89, SMB67
MAIN OB1
SUBROUTINE 0
SBR0
EN
ENO
ENO
ENO
ENO
ENO
MAIN OB1
MOV_B
EN
Preload control byte for
subsequent cycle time
changes.
IN
16#89
ENO
SMB67
OUT
Figure 9-22 Example of a Pulse Train Output Using Single Segment Operation in
SM Memory
Seitenansicht 240
1 2 ... 236 237 238 239 240 241 242 243 244 245 246 ... 503 504

Kommentare zu diesen Handbüchern

Keine Kommentare