[go: up one dir, main page]

0% found this document useful (0 votes)
8 views3 pages

FB1

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 3

SIMATIC

PCA blocks\SIMATIC
300 Station\CPU 315-2 DP(1)\...\FB1 - <offline>

08/07/2016 03:45:33 PM

FB1 - <offline>
"Read Danfoss VLT status"
Read Danfoss VLT status
Name:
Family:
Author: J.B.
Version: 1.1
Block version: 2
06/04/2007 01:06:12 PM
Time stamp Code:
06/04/2007 12:52:42 PM
Interface:
Lengths (block/logic/data): 00702 00530 00028

Name

Data Type

IN

Address

Initial Value

Comment

0.0
Int_Ext

Int

0.0

0=Intern DP Master, 1=Eksternal DP Master

Master_No

Int

2.0

DP Master system number

Timer_No

Timer

4.0

OUT

0.0

Station01_32

DWord

6.0

DW#16#0

Station33_64

DWord

10.0

DW#16#0

Station65_96

DWord

14.0

DW#16#0

Station97_126

DWord

18.0

DW#16#0

IN_OUT

0.0

STAT

0.0

SZL_ID

Word

22.0

W#16#0

Index

Word

24.0

W#16#0

Ret_Val_act

Int

26.0

Busy

Bool

28.0

FALSE

SZL_Header

Struct

30.0

Lenght_DR

Word

30.0

W#16#0

N_DR

Word

32.0

W#16#0

Actual_stations

Array [1..4] Of DWord 34.0

Request

Bool

50.0

FALSE

New_slave

Bool

50.1

FALSE

New_slave_1

Bool

50.2

FALSE

S01_32

DInt

52.0

L#0

S33_64

DInt

56.0

L#0

S65_96

DInt

60.0

L#0

S97_126

DInt

64.0

L#0

TEMP

0.0

Block: FB1
Hardcode to DB1 is changed

Network: 1
L
L
==I
JC

#Int_Ext
0

L
T
L

W#16#4292
#SZL_ID
#Master_No

#Int_Ext

-- 0=Intern DP Master, 1=Eksternal DP Master

#SZL_ID
#Master_No

-- DP Master system number

L01A

Page 1 of 3

SIMATIC

T
JC

PCA blocks\SIMATIC
300 Station\CPU 315-2 DP(1)\...\FB1 - <offline>
#Index
L01B

08/07/2016 03:45:33 PM

#Index

L01A: L
T
L
T

W#16#292
#SZL_ID
#Master_No
#Index

#SZL_ID
#Master_No
#Index

L01B: A
R

#Busy
#Request

#Busy
#Request

-- DP Master system number

Network: 2
AN
S

#Busy
#Request

#Busy
#Request

CALL "RDSYSST"
REQ
:=#Request
SZL_ID
:=#SZL_ID
INDEX
:=#Index
RET_VAL
:=#Ret_Val_act
BUSY
:=#Busy
SZL_HEADER:=#SZL_Header
DR
:=#Actual_stations

SFC51
#Request
#SZL_ID
#Index
#Ret_Val_act
#Busy
#SZL_Header
#Actual_stations

-- Read a System Status List or Partial List

Network: 3
O(
L
L
<>D
)
O(
L
L
<>D
)
O(
L
L
<>D
)
O(
L
L
<>D
)
=

#Actual_stations[1]
#S01_32

#Actual_stations[1]
#S01_32

#Actual_stations[2]
#S33_64

#Actual_stations[2]
#S33_64

#Actual_stations[3]
#S65_96

#Actual_stations[3]
#S65_96

#Actual_stations[4]
#S97_126

#Actual_stations[4]
#S97_126

#New_slave

#New_slave

Network: 4
A
L
SD
NOP
NOP
NOP
A
=

#New_slave
S5T#2S
#Timer_No
0
0
0
#Timer_No
#New_slave_1

#New_slave
#Timer_No

#Timer_No
#New_slave_1

Network: 5
A
=
A(
A
JNB
L
T
SET
SAVE
CLR
_001: A
)

#New_slave_1
L
0.0
L
0.0
_001
#Actual_stations[1]
#S01_32

#New_slave_1

#Actual_stations[1]
#S01_32

BR

Page 2 of 3

SIMATIC

_002:

_003:

_004:

_005:

_006:

_007:

_00b:

JNB
L
T
NOP
A(
A
JNB
L
T
SET
SAVE
CLR
A
)
JNB
L
T
NOP
A(
A
JNB
L
T
SET
SAVE
CLR
A
)
JNB
L
T
NOP
A(
A
JNB
L
T
SET
SAVE
CLR
A
)
JNB
L
T
NOP

PCA blocks\SIMATIC
300 Station\CPU 315-2 DP(1)\...\FB1 - <offline>
_002
#Actual_stations[1]
#Station01_32
0
L
0.0
_003
#Actual_stations[2]
#S33_64

08/07/2016 03:45:33 PM

#Actual_stations[1]
#Station01_32

#Actual_stations[2]
#S33_64

BR
_004
#Actual_stations[2]
#Station33_64
0
L
0.0
_005
#Actual_stations[3]
#S65_96

#Actual_stations[2]
#Station33_64

#Actual_stations[3]
#S65_96

BR
_006
#Actual_stations[3]
#Station65_96
0
L
0.0
_007
#Actual_stations[4]
#S97_126

#Actual_stations[3]
#Station65_96

#Actual_stations[4]
#S97_126

BR
_00b
#Actual_stations[4]
#Station97_126
0

#Actual_stations[4]
#Station97_126

Page 3 of 3

You might also like