Functional description
I IA CE
SIPLUS RIC IEC on S7 V1.5
Page 24 of 28
©SIEMENS AG 2013
3.1.2.2. Block parameter with its default assignment and short comment
FB166
Type
Default
Block comment / short description
Comp_ID
IN
BYTE
B#16#0
Identifier for Diagnostic-Functions
P_Application_Src
IN
DWORD
DW#16#0
Pointer
which
must
be
connected
to
'S7_IEC_Config' - Module
ASDU_Adr_Src
IN
DINT
L#0
ASDU-Address which will expected by this
module; Default: 0
First_IOA_or_Para_DB
_No
IN
DINT
L#0
First forwarded IOA (Default: 0) or Para-DB with
Offset 100000000
Last_IOA_or_No_of_Inf
os
IN
DINT
L#0
Last forwarded IOA (Default: 0) or number of
infos if Para-DB is used
P_Application_Dst
IN
DWORD
DW#16#0
Pointer which has to be connected to
'S7_IEC_Config' - Module
ASDU_Adr_Dst
IN
DINT
L#0
ASDU-Address which is expected by this mod-
ule; Default: 0
Lock
IN
BOOL
FALSE
If set, new commands will not be executed, they
will be locked and neg. conf
With_Termination
IN
BOOL
TRUE
0: without; 1 (default): with termination of activa-
tion
Timeout_Conf
IN
TIME
T#1s
Within this time a confirmation is expected; De-
fault: 1 sec
Timeout_Term
IN
TIME
T#5s
Within this time a termination is expected; De-
fault: 5 sec
Cmd_Buffer_Dim
IN
INT
0
0: without (default); >0 max. number of buffered
commands
CMD_RUN
OUT
BOOL
FALSE
Signals a running (pulse-) command
CMD_Buf_DB
OUT
INT
0
Shows the data block number of command buff-
er (which is created at runtime)
3.1.2.3. Parameter and functions details:
Comp_ID
Block identifier for (actual only internal) diagnostic functions. Assign different numbers
within one block type as byte variable e.g.
B#16#1
P_Application_Src
P_Application_Src is a pointer on a common data range of ‚S7_IEC_Config’ block.
Therefore it must be interconnected via a DWord variable with its output
‚P_Application’. Via this pointer resp. the data range behind, application data like
ASDU address, actual time stamp receive buffer etc. are handed over to the config
block as well as GI-requests processed.
,P_Application_
Src’ has to be connected with the ‚S7_IEC_Config’ block’ which re-
ceives the messages from the superior station (control center). Usually this is the
S7_IEC_Config in the Slave configuration.
ASDU_Adr_Src
Value of the address from the application service data unit which is the source of the
command messages.
Permissible range for the length of the ASDU address 1 byte is 1 up to 254
Permissible range for the length of the ASDU address 2 byte is 1 up to 65534
The broadcast addresses 255 (FFh if length 1) resp. 65535 (FFFFh if length 2) are
always accepted.
First_IOA_or_Para_DB_No
Value of the address of the first information object processed from the block
Permissible range for the length of the IOA address 1 byte is 1 up to 255
Permissible range for the length of the IOA address 2 byte is 1 up to 65535
Permissible range for the length of the IOA address 3 byte is 1 up to 16777215
If the information object address exists in structured form (3 octets), it has to be con-
verted into a decimal number:
IOA dec = 256* 256*256*octet3
Alternatively here a parameter-DB can be indicated where the information to be pro-
cessed is deposited, like at the standard SLo-blocks. If the parameterization has to be
carried out via a parameter-DB, an offset of 100000000 (eight zeros) has to be en-
tered.
I.e. If the parameters have to be taken from the DB1301 the value L#100001301 has
to be entered.