Download Print this page

Siemens SIMATIC S7-300 Module data Manual page 452

Universal
Hide thumbs Also See for SIMATIC S7-300 Module data:

Advertisement

UN
M
20.0
UN
M
20.1
SPB
END
U
M
20.1
SPB
WRT
//Create the memory for data transfer
L
B#16#01
T
MB
L
B#16#02
T
MB
L
PEW
T
MW
T
MW
T
MW
T
MW
T
MW
T
MW
// Transfer the cold-spot temperature to AI 6 x TC
WRT:
CALL "WR_REC"
REQ
IOID
:=B#16#54
LADDR
:=W#16#EE
RECNUM
:=B#16#2
RECORD
:=P#M 0.0 Byte 14
RET_VAL
:=MW22
BUSY
:=M20.1
U
M
20.1
SPB
END
CLR
=
M
END:
NOP 0
// Check the request: new cold spot temperature
// Check whether WR_REC is busy
// Skip, if no transfer is required
ist
//Check whether WR_REC is busy
// Transfer the temperature in hundredthsl
// of a degree (Pt100 climatic))
0
// Transer the temperature in Kelvin
1
128
// Read out the input address of the used channel
of
// the thermoresistor module
2
// for channel 0 of AI 6 x TC
4
// for channel 1 of AI 6 x TC
6
// for channel 2 of AI 6 x TC
8
// for channel 3 of AI 6 x TC
10
// for channel 4 of AI 6 x TC
12
// for channel 5 ofAI 6 x TC
:=M20.0
// Input address of AI 6 x TC
// Data record number must be set to 2
// Indicator for the memory for data
// Return value for SFC "WR_REC"
// Busy bit of SFC "WR_REC"
// check whether WR_REC is busy
20.0
// Request bit for data transfer
// transfer, 14 bytes long
// Reset request for cold-spot
// temperature

Advertisement

loading