Sie sind auf Seite 1von 2

SIMATIC

MATRIX_V3\SIMATIC
314 C-2DP\CPU 314C-2 DP\...\OB1 - <offline>

12.12.2016 20:25:51

OB1 - <offline>
"CYCL_EXC"
Name:
Autor:

Cycle Execution
Familie:
Version: 0.1
Bausteinversion: 2
28.07.2016 11:17:32
Zeitstempel Code:
28.09.2006 10:56:09
Interface:
Lngen (Baustein / Code / Daten): 00212 00088

Name

Datentyp

Adresse

TEMP

00024

Kommentar

0.0

OB1_EV_CLASS

Byte

0.0

Bits 0-3 = 1 (Coming event), Bits 4-7 = 1 (Event class 1)

OB1_SCAN_1

Byte

1.0

1 (Cold restart scan 1 of OB 1), 3 (Scan 2-n of OB 1)

OB1_PRIORITY

Byte

2.0

Priority of OB Execution

OB1_OB_NUMBR

Byte

3.0

1 (Organization block 1, OB1)

OB1_RESERVED_1

Byte

4.0

Reserved for system

OB1_RESERVED_2

Byte

5.0

Reserved for system

OB1_PREV_CYCLE

Int

6.0

Cycle time of previous OB1 scan (milliseconds)

OB1_MIN_CYCLE

Int

8.0

Minimum cycle time of OB1 (milliseconds)

OB1_MAX_CYCLE

Int

10.0

Maximum cycle time of OB1 (milliseconds)

OB1_DATE_TIME

Date_And_Time 12.0

tInCount

Word

Baustein: OB1

Date and time OB1 started

20.0

"Main Program Sweep (Cycle)"

Netzwerk: 1

WRITE BIT IN MATRIX

Matrix-Bit will be adressed by MATRIX(MW4,MW6) and Bit will be set according to


M1.0
Matrix lies now in DB1000 of PLC
And now I am checking for limits:
If you input values higher than 15 to MW4 .. MW10 than code will FC4 and FC5
will not be run and a fault will be displayed "oBoFlt"=high
If you set Matrix(iInRow,iInColumn) correcxtly like Matrix(15,15) all is fine.
Advantage now is code is safe(r) ;-) and PLC will not go to stop.

"Write_To_Bit_
Matrix"

M1.0
EN

MW4 iInRow

ENO
oBoFlt

M1.2

MW6 iInColumn
M1.1 iBoVal

Seite 1 von 2

SIMATIC

MATRIX_V3\SIMATIC
314 C-2DP\CPU 314C-2 DP\...\OB1 - <offline>

Netzwerk: 2

12.12.2016 20:25:51

READ BIT IN MATRIX

Matrix-Bit will be adressed by MATRIX(MW4,MW6)


Read bit is in M1.1

"Read_From_Bit_
Matrix"

M1.3
EN

ENO

MW8 iInRow
MW10 iInColumn

Netzwerk: 3

oBoVal

M1.4

oBoFlt

M1.5

Bausteinende

The End
BE

Seite 2 von 2

Das könnte Ihnen auch gefallen