Herunterladen Inhalt Inhalt Diese Seite drucken

Siemens simatic S7-300 Handbuch Seite 85

Vorschau ausblenden Andere Handbücher für simatic S7-300:
Inhaltsverzeichnis

Werbung

m_ur:
L
T
SPA
end:
NOP
END_FUNCTION
ORGANIZATION_BLOCK OB 1
TITLE = "Main Program Sweep (Cycle)"
VERSION : 0.1
VAR_TEMP
OB1_EV_CLASS : BYTE ;
OB1_SCAN_1 : BYTE ;
OB1_PRIORITY : BYTE ;
OB1_OB_NUMBR : BYTE ;
OB1_RESERVED_1 : BYTE ;
OB1_RESERVED_2 : BYTE ;
OB1_PREV_CYCLE : INT ;
OB1_MIN_CYCLE : INT ;
OB1_MAX_CYCLE : INT ;
OB1_DATE_TIME : DATE_AND_TIME ;
END_VAR
BEGIN
NETWORK
TITLE =Übertragen der Kanalwerte nach dem Datenbaustein DB 1
// Kanal 0 -> Datenbaustein
L
T
// Kanal 1 -> Datenbaustein
L
T
// Kanal 2 -> Datenbaustein
L
T
// Kanal 3 -> Datenbaustein
L
SM331; AI 8 x 12 Bit Getting Started Teil 3: Thermoelemente
Getting Started, 11/2006, A5E00264192-02
W#16#100;
#Status;
end;
0;
//Bits 0-3 = 1 (Coming event), Bits 4-7 = 1 (Event
class 1)
//1 (Cold restart scan 1 of OB 1), 3 (Scan 2-n of
OB 1)
//Priority of OB Execution
//1 (Organization block 1, OB1)
//Reserved for system
//Reserved for system
//Cycle time of previous OB1 scan (milliseconds)
//Minimum cycle time of OB1 (milliseconds)
//Maximum cycle time of OB1 (milliseconds)
//Date and time OB1 started
PEW 256;
DB1.DBW
0;
PEW 258;
DB1.DBW
2;
PEW 260;
DB1.DBW
4;
PEW 262;
A.1 Quellcode des Anwenderprogramms
Anhang
A-5

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis