Analog modules
6.11 Analog input module SM 331, AI 6 x TC isolated (6ES7331-7PE10-0AB0)
S7-300 Module data
Manual, 06/2017, A5E00105505-AJ
431
T MW 12 // for channel 5 ofAI 6 x TC
// Transfer the cold-spot temperature to AI 6 x TC
WRT: CALL "WR_REC"
REQ :=M20.0 // Request bit for data transfer
IOID :=B#16#54
LADDR :=W#16#EE // Input address of AI 6 x TC
RECNUM :=B#16#2 // Data record number must be set to 2
RECORD :=P#M 0.0 Byte 14 // Indicator for the memory for data
// transfer, 14 bytes long
RET_VAL :=MW22 // Return value for SFC "WR_REC"
BUSY :=M20.1 // Busy bit of SFC "WR_REC"
U M 20.1 // check whether WR_REC is busy
SPB END
CLR
= M 20.0 // Reset request for cold-spot
// temperature
This is just an example. The logic and memory allocation must be adapted to the structure of
the particular PLC program used.
The return value of SFC "WR_REC" (MW 22) can be evaluated in accordance with the
structure of the PLC program used. Additional information is available in the manual titled
System Software for S7-300/400 System and Standard Functions
(
http://support.automation.siemens.com/WW/view/en/1214574
).
6.11.4 Firmware update via HW Config for analog input module SM 331; AI 6 x TC
Introduction
Depending on the available comaptible function updates, the module AL 6 x TC can be
updated to the newest firmware version.
The most recent firmware versions are available from your Siemens representative or from
the Internet (
http://www.siemens.com/automation/service&support
).
Requirements
● STEP 7 V 5.4 SP4 (HSP0158) or higher
● For central use of the module Al 6 x TC in a S7-300, the firmware update must occur in
the CPU-operating mode STOP. If the CPU is in the RUN operating mode, it may result in
unexpected behavior and the module will first be available again after a network
off/network on.
● If the module Al 6 x TC is set in a distributed IO device ET 200M, a firmware update is
also possible in the CPU-operating mode RUN.