Page 4
Contents and general instructions ® PROFIBUS is a registered trademark of PROFIBUS International. ® SIMATIC is a registered trademark of Siemens AG Festo P.BE−SPC200−S7−PC−EN en 0609a...
Contents and general instructions Designated use Function block SPC200−PC" serves for reading and writing parameters of the SPC200 from a Simatic S7 controller with PROFIBUS. For this purpose it uses the SPC200 parameter channel (PC = parameter channel). The SPC200 must be connected to the S7 by means of field bus module type SPC200−COM−PDP.
Festo does not guarantee that the software will suffice for all applications and purposes intended by the user, or that it will function without problems when used with other programs, or that it is compatible with these programs.
This means that failure to observe this instruction may result in damage to property. The following pictogram marks passages in the text which describe activities with electrostatically sensitive compo nents. Electrostatically sensitive components may be damaged if they are not handled correctly. Festo P.BE−SPC200−S7−PC−EN en 0609a...
Page 10
Accessories: Information on necessary or sensible accessories for the Festo product. Environment: Information on environment−friendly use of Festo products. Text markings The bullet indicates activities which may be carried out in · any order. 1. Figures denote activities which must be carried out in the numerical order specified.
SPC200 firmware as from version 4.6 PROFIBUS module SPC200−COM−PDP as from version 2.0 GSD file as from revised version 05.03.2003 WinPISA as from version 4.31 Earlier versions of the SPC200 or PROFIBUS module do not support communication with the function block. Festo P.BE−SPC200−S7−PC−EN en 0609a...
Page 12
Contents and general instructions Festo P.BE−SPC200−S7−PC−EN en 0609a...
1. Installation of the function block Incorporating the function block in your project Step 1 Install a SPC200 in the Hardware Manager and incorpor · ate the parameter channel in the I/O configuration. Step 2 Dearchivate the project which contains the function block.
Page 16
You must confirm this question. Caution You require for one SPC200 only one instance data block. With this instance data block all axes of the SPC200 can be addressed. For each additional SPC200 in the network you will require another instance data block.
By means of the input parameters, the function block encodes the request in accordance with the PKW protocol and transfers it to the SPC200 using the SFC15 DPWR_DAT" or SFC14 DPRD_DAT". The reply received is transferred to the function block out puts.
0 = The parameter is read out of the SPC200. 1 = The parameter is written into the SPC200. INPUT I, Q, M, L, D, Selected parameter number. Constant Available parameters see manual for the field bus module SPC200−COM−PDP. 2−4 Festo P.BE−SPC200−S7−PC−EN en 0609a...
Page 21
Example: Position register 37 −−> Subindex=38: Entry = B#16#26 WR_Val INPUT DINT I, Q, M, L, D, When writing: The value to be transferred Constant to the SPC200. When reading: This value will be ignored. 2−5 Festo P.BE−SPC200−S7−PC−EN en 0609a...
Done = TRUE. RD_Val OUTPUT DINT I, Q, M, L, D Value read When writing: always 0 When reading: the value read Please note: RD_Val is only valid if Done = TRUE and Error = FALSE. 2−6 Festo P.BE−SPC200−S7−PC−EN en 0609a...
Page 23
I3 = Input parameter of next request O1 = Valid output parameters of last request (I1) Ox = Output parameter not valid because Done=FALSE O2 = Valid output parameters of current request (I2) Fig. 2/2: Start request 2−7 Festo P.BE−SPC200−S7−PC−EN en 0609a...
Page 24
A timer is started parallel to the request processing. If the timeout time expires before a reply is received from the SPC200, the function block will register a fault (Error_Val= DW#16#700000FF). The standard timeout time is 2 seconds. This time can be changed in the Network 59.
Page 25
Ox = Output parameter not valid because Done=FALSE O2 = Valid output parameters for request I2: Fault occured at I2 O0 = Valid output parameters after fault quitting: Error_Val = RD_Val = 0 Fig. 2/3: Reset fault 2−9 Festo P.BE−SPC200−S7−PC−EN en 0609a...
Page 26
The request is carried out in accord ance with the input parameters I3. Before setting a new starting impulse a delay T* of at least one cycle time has to be observed. 2−10 Festo P.BE−SPC200−S7−PC−EN en 0609a...
The lower−value byte contains the fault number which occurred during reading or writing the parameter value (PKW fault). This fault was generated either by the SPC200 or by the function block itself (timeout). The example refers to STEP 7 Service pack 1. Other versions may differ in their contents.
Page 28
PROFIBUS request fast enough, usually because a commissioning function (identification) has been carried out. In this case check the function of the SPC200 and prevent the function access of the SPC200O−PC during identification. All further faults are generated by the SPC200.
Page 29
70000003 Faulty subindex The specified subindex does not exist with this parameter. The element addressed with the subindex does not exist in the SPC200 (program does not exist, axis does not exist, etc.). 70000011 Request cannot be carried out due to faulty operating status of the SPC200.
Page 30
2. Function block description Further fault messages of the SPC200 with modified function block Fault code Explanation DW#16#..faults 70000004 Incorrect data type: An attempt has been made to write a double word parameter with one word. This is not permitted.
2. Function block description Parameters of the SPC200 The following parameters are defined in the SPC200. Sub− Description Unit Format index 1 ... 4 Actual position of the axes (subindex 1 = X, 2=Y, 3=Z, 4=U) 1 ... 4 Nominal position of the axes (subindex 1 = X, 2=Y, 3=Z, 4=U) 1 ...
Page 32
2. Function block description 2−16 Festo P.BE−SPC200−S7−PC−EN en 0609a...
Need help?
Do you have a question about the SPC200 and is the answer not in the manual?
Questions and answers