background image

  

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: without (default); >0 max. number of buffered 
commands 

CMD_RUN 

OUT 

BOOL 

FALSE 

Signals a running (pulse-) command 

CMD_Buf_DB 

OUT 

INT 

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. 
 

Summary of Contents for SIPLUS RIC IEC on S7

Page 1: ...I IA CE SIPLUS RIC IEC on S7 AddOn Nodal Blocks Version V1 5 ...

Page 2: ...cautions are not taken NOTICE means that material damage can occur if the appropriate precautions are not taken Note highlights important information about the product handling the product or part of the documentation that is of particular importance Qualified personnel Commissioning and operation of equipment described in this manual module device may only be car ried out by qualified personnel Q...

Page 3: ...dules is ESD which is the com monly used international abbreviation of ESD Electrostatic Sensitive Device NOTICE Electrostatic Sensitive Devices ESD The presence of this symbol on cabinet rack or packaging labels indicates the use of electrostatically sensitive devices and thus the touch sensitivity of these components These modules can be destroyed by voltage and energy far below the limits of hu...

Page 4: ...uires basic knowledge in the field of telecontrol and the IEC60870 5 protocols as well as general knowledge of automation technology with SIMATIC S7 Users should also have sufficient knowledge of computers or of tools similar to PCs e g programming devices and of the Windows operating system As the S7 is configured using the STEP 7 basic software you should also have sufficient experience in handl...

Page 5: ...SLi_MD_pDB FB161 11 3 1 1 2 Block parameter with its default assignment and short comment 12 3 1 1 3 Parameter and functions details 13 3 1 1 4 General notes about function and handling of the block 16 3 1 2 Nodal block for the command direction SLoMAi 22 3 1 2 1 Nodal block SLoMAi_CD_pDB FB166 23 3 1 2 2 Block parameter with its default assignment and short comment 24 3 1 2 3 Parameter and functi...

Page 6: ...nt description apply to this configuration In this case SIPLUS RIC IEC on S7 has IEC Slave function compared to the control center and IEC Master function compared to the subordinated RTU The nodal blocks support the easy and extensively non parameterized projection of the information to be transferred The following blocks are available FB161 for the control direction subordinated RTU SIPLUS RIC I...

Page 7: ...tiation of com mands etc The FB161 and FB166 blocks described here are application blocks performing Master as well as Slave functions For more detailed information about Slave and Master blocks we refer you to the SIPLUS RIC IEC on S7 manual V1 4 Notice All application blocks are designed exclusively for the OB1 priority level The FB100 communication blocks S7_IEC_Config also have to be operated ...

Page 8: ...nd buffer Slave P_SLi Slave ASDU Address SL_Org_Asdu_1 FB12x SLi_ FB130ff MAoSLi_MD FB161 SLo_ FB135ff All blocks are multiple usable FB_xy e g S7_IEC_S104 L1_xy L2_xy L7_T101_104_B Slave blocks SL FB_100 e g S7_IEC_M101 L1_xy L2_xy L7_T101_104_B P_Application Master FB_100 e g S7_IEC_M104 L1_xy L2_xy L7_T101_104_B MAo_ FC14xff MA_Org_Asdu_1 FB12x MAi_ FB14xff Master blocks MA SLoMAi_CD FB166 Send...

Page 9: ...a the pointer P_Application Master with the S7_IEC_Config of the Master protocol version information source like the MAo blocks i e the func tional block will be linked directly to the IEC Master activation The link to the Slave application information target is carried out like the activation of the SLi blocks with the pointer P_SLi Slave via an organization block SL_Org_Asdu_1 The parameterized ...

Page 10: ...it over to the IEC Slave MAoSLi_MD_pDB MD is the abbreviation for Monitoring Direction This is the signaling resp monitoring direction subordinated Station SIPLUS RIC IEC on S7 control station MAoSLi_MD_pDB pDB is the abbreviation for parameterizable by DB option The available MAoSLi functional blocks are shown in the following overview Block Block No Function MAoSLi_MD_pDB FB161 Transfer of infor...

Page 11: ..._Images can be pro cessed Single indication with TK 1 2 30 double indication with TK 3 4 31 transformer tap with TK5 6 32 Bit pattern with TK7 8 33 measured value normalized value with TK9 10 34 measured value with scaled value with TK11 12 35 measured value with short floating point number with TK13 14 36 integrated totals with TK15 16 37 Readings for the default adjustments can be taken from the...

Page 12: ...rity of transmission with Prio L 0 highest 15 lowest Default 1 Tx_Prio_H IN INT 0 Priority of transmission with Prio H 0 highest 15 lowest Default 0 Pri oH_15_13_11_9_7_5_3_ 1 IN BYTE B 16 8F Priority for transmission 0 Low 1 High De fault B 16 8F MEs Prio Low wTime_15_13_11_9_7_5 _3_1 IN BYTE B 16 FF Transmission with 1 or without 0 Timestamp if COT 20 requested Def B 16 FF Inro_QOI IN BYTE B 16 ...

Page 13: ...gth 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 octet1 256 octet2 256 256 octet3 Together with Last_Info_Adr_Src it is possib...

Page 14: ...time stamp Full time stamp and time of the CPU with fractional time stamp completed full time stamp with time from received message with full time stamp Taking over the full time stamp from received message With the default adjustment B 16 FF all information are transmitted with time stamp if the COT cause of transmission is 20 requested Inro_QOI Interrogation process Adjustable interrogation acco...

Page 15: ...e measured value dif ference to the last transmission is added up and transmitted spontaneously with the mathematical achievement of the threshold For each measured value individual thresholds can be provided in a parameter data block if assigned FB_RetVal The function block is signaling as follows Positive values ok W 16 0000 ok no fault W 16 1000 ok with reduced cycle next_Info Negative values 1...

Page 16: ...tomatically creation The only difference is the own fixed DB number and the structured design This allows already a moni toring diagnosis and may be already helpful In a second step individual adaptions may be carried out in the data block Fixing of the number of required information by the size of array declaration view the further adjustments have to be carried out in the data view For each info...

Page 17: ... for future do not change DB_Manag Reserved 8 0 8 0 WORD W 16 0 reserved for future do not change 10 0 10 0 END_STRUCT END_STRUCT 10 BYTE Info_Manag STRUCT Info_Manag P_Byte_First_Info 0 0 10 0 INT 32 Byte Position of first Para Block do not change Info_Manag No_of_Infos 2 0 12 0 INT 0 0 unspecified DB is filled up to the end otherwise size n of ARRAY 1 n Info_Manag Len_Info 4 0 14 0 BYTE B 16 2C ...

Page 18: ... identifier 1 3 5 7 9 15 of reveived info Para_MD x Im_TI 23 0 55 0 BYTE B 16 0 Image Real type identifier of received info Para_MD x Im_Value 24 0 56 0 DWORD DW 16 0 Image Value of the received info ME always as Real Para_MD x IM_State 28 0 60 0 BYTE B 16 0 Image State of the received info Para_MD x Diag_Count 29 0 61 0 BYTE B 16 0 Info Counter which will be increased with each received info Para...

Page 19: ...other one Otherwise 0 Info_Management Parameter blocks containing an enumeration have one information block Info management It contains following information The values of the information management parameters are already preset and therefore do not need to be modified P_Byte_First_Info Byte position of the first data record in this DB may not be changed No_of_Infos Number of data records containe...

Page 20: ...e it is the time from the received message a combination of CPU time and time from the message or the absolute CPU time Im_TI_Basic Basic type identification of the last received message Basic type identification and from this FB supported are 1 3 5 7 9 1 13 15 They represent the infor mation types single double indication transformer step position bit pattern measurands normalized value scaled va...

Page 21: ...rameter Time_IV LO Local time is set if the FB170 Parameter Time_Diff is 0 Taking over from time status of the CPU The Bit is informatively and is not used in IEC Messages IM_S7 TimeStamp Date and Time in S7 Format The time arises as follows Receive message S7 Date and Time with partially time stamp The partially time from IEC message TK1 TK2 TK4 is completed to full time with the time carried in ...

Page 22: ... blocks input This are input blocks The block evaluates the information from the SLo part and generates the appro priate command messages SLoMAi_CD_pDB CD is the abbreviation for Command Direction this is the Command resp control direction Control center SIPLUS RIC IEC on S7 subordinated station SLoMAi_CD_pDB pDB is the abbreviation for parameterizable by DB option The available SloMAi functional ...

Page 23: ...Setpoint command with normalized value with TK 48 61 Setpoint command with scaled value with TK 49 62 Setpoint command with shortened floating point number with TK 50 63 Digital setpoint commands with 32 Bit bit pattern with TK 51 64 Readings for the default adjustments can be taken from the corresponding variable comment On the other hand only a minimum of mandatory inputs are required The interc...

Page 24: ... 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 ...

Page 25: ...ess 2 byte is 1 up to 65534 The broadcast addresses 255 FFh if length 1 resp 65535 FFFFh if length 2 are always accepted Lock Blocking input for all commands processed from this block FALSE New commands are executed TRUE New commands are not executed and negatively acknowledged With_Termination Selection whether a command has to be completed with or without transmission of Termination of activatio...

Page 26: ...rst Para Block do not change Info_Manag No_of_Infos 2 0 12 0 INT 0 0 unspecified DB is filled up to the end otherwise size n of ARRAY 1 n Info_Manag Len_Info 4 0 14 0 BYTE B 16 8 Difference in byte between two Para Blocks do not change Info_Manag Len_Sort_Key 5 0 15 0 BYTE B 16 0 0 without sorting 0 Data sets are sort ed ascending with x Bytes DB_Manag Re_internal_usage 6 0 16 0 DWORD DW 16 0 10 0...

Page 27: ...4 the first 4 bytes of the information specific parameter see parameter group IEC_Addr form the sorting criteria Other sorting lengths are not permitted If very much parameter blocks are needed it is recommended to deposit the parame ter blocks ascending sorted according to T101_104_IOA A so applied data block will be scanned more effective in conjunction with Len_Sort_Key 4 binary scan Global Par...

Page 28: ...into the status bit SE and transferred but not evaluated for the command output The command is emitted independently from S E Command messages with time stamp TK 58 64 are accepted transferred with time and ex ecuted However in the actual version the time stamp is not evaluated Commands can be cached in a command buffer DB in case a command is already active With it fast none supervised command se...

Reviews: