EasyManuals Logo

Siemens SIMATIC NET S7-300 User Manual

Siemens SIMATIC NET S7-300
317 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #257 background imageLoading...
Page #257 background image
7 Programming FCs (Functions) and FBs for S7 Ethernet CPs
A-257
S7-CPs for Industrial Ethernet Configuring and Commissioning
Release 01/2007
C79000-G8976-C182-07
Example in STL representation:
STL Explanation
CALL FB 54, DB 54
CPLADDR := W#16#0110
DONE := M 1.1
ERROR := M 1.2
NEW := M 1.3
STATUS := MW 12
ID := W#16#86A
LEN := MW 16
MODE := MD 18
TINFO := P#DB4.DBX0.0 BYTE 32
AINFO := P#DB4.DBX32.0 BYTE 532
// PNIO_ALARM block call
(read/write data record)
// Module address from hardware configuration
// Address for return parameter DONE
// Address for return parameter ERROR
// TRUE: A new alarm was received
// Error code of the SFB or PNIO-Ctrl
// Logical base address of the component (module
or submodule) from which an alarm was
received
// Length of the received alarm information
(AINFO)
// RESERVED (value always = 0)
// (task information) Destination area for OB
start information and management information;
fixed length 32 bytes of diagnostic
information
// (alarm information) Destination area for
header information and additional alarm
information
Explanation of the Formal Parameters
The following table explains all the formal parameters for FB54:
Paramet
er
Declarat
ion
Data
type
Possible
Values
Remarks
CPLADDR INPUT WORD - Start address of the module that
caused the problem
DONE OUTPUT BOOL 0: -
1: Alarm information
transferred
successfully
This parameter indicates whether or
not the job was completed without
errors.
If DONE = 1, the NEW parameter must
also be checked.
ERROR OUTPUT BOOL 0: -
1: Error
Error code
NEW OUTPUT BOOL 0: Data transfer active or
no new alarm
1: New alarm received
and acknowledged
If DONE = 1 and NEW = 1, a new
received alarm is signaled.
STATUS OUTPUT WORD 0: No error
Other value: Error
(see Table 7-14)
Status code

Table of Contents

Other manuals for Siemens SIMATIC NET S7-300

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SIMATIC NET S7-300 and is the answer not in the manual?

Siemens SIMATIC NET S7-300 Specifications

General IconGeneral
Product Type DesignationSIMATIC NET S7-300
MountingDIN rail mounting
Protection ClassIP20
CPU ModelsVarious models available (e.g., CPU 312, CPU 314)
Communication InterfacesMPI, PROFIBUS DP
Power Supply24 V DC power supply required. Different power supply modules available.
I/O ModulesDigital input modules, digital output modules, analog input modules, analog output modules
ProgrammingSTEP 7 software
Supply Voltage24V DC or 120/230V AC (depending on model)
Digital InputsAvailable via digital input modules
Digital OutputsAvailable via digital output modules
Analog InputsAvailable via analog input modules
Analog OutputsAvailable via analog output modules
Communication FunctionsMPI, PROFIBUS DP, Ethernet (depending on model)
ProtocolsMPI, PROFIBUS DP, TCP/IP (depending on model)
Operating Temperature0°C to 60°C
Storage Temperature70 °C
MemoryDepends on CPU model (e.g., 32 KB to 1.5 MB)

Related product manuals