Beruflich Dokumente
Kultur Dokumente
ATTENTION!
This document is the property of GEFRAN and may not be reproduced or transferred to third parties without authorization.
80959A_MSW_GFW-PROFIBUS_11-2013_ENG 1
2 80959A_MSW_GFW-PROFIBUS_11-2013_ENG
CONTENTS
INTRODUCTION..................................................................4
USING GFW-PROFIBUS WITH SIEMENS STEP7..........21
ATTENTION.................................................................4
CONFIGURATION......................................................21
PARAMETERISATION...............................................22
BIBLIOGRAPHIC REFERENCES.......................................4
STANDARD SLAVE DIAGNOSTICS AREA...............23
CHANGING THE NODE ADDRESS..........................23
MAIN TECHNICAL CHARACTERISTICS...........................4
TECHNICAL DATA.......................................................5
“Gefran” SW libraries for SIEMENS S7..............24
PROCESS DATA REFRESH TIMES............................6
INSTALLAtion..........................................................24
USER DATA TYPES...................................................26
INSTALLATION....................................................................7
FUNCTION CALL.......................................................29
ELECTRICAL CONNECTIONS TO PROFIBUS
FUNCTION BLOCK....................................................30
NETWORK...................................................................7
NODE ADDRESS SELECTION VIA
ROTARY SWITCH........................................................9
NODE ADDRESS CONFIGURATION VIA
SOFTWARE.................................................................9
SELECTING GFW CONFIGURATION WITH
DIP-SWITCHES...........................................................9
80959A_MSW_GFW-PROFIBUS_11-2013_ENG 3
introduction
The “GFW” series of temperature control modules with PROFIBUS DP Fieldbus interface provides rapid inte-
gration of a large number of compact control units to control temperature and the heating device (up to 372 zones) on
modern automation systems (PLCs, Supervision Systems, etc.) interconnected by means of communication networks
and protocols defined by the standard.
This manual does not describe the “PROFIBUS DP” Fieldbus, we assume that the user is familiar with it, and that he will
refer to the standard or to the official site managed by P.N.O. (Profibus Network Organization): www.profibus.com for
updates.
We also assume that the user is familiar with the technical characteristics of GFW products. Such characteristics
are described in the user manuals enclosed with the product, or may be downloaded from the GEFRAN S.P.A. internet
site www.gefran.com.
To facilitate the installation and configuration of GFWs in a PROFIBUS DP network, we provide “GEFRAN” libraries
of Function Blocks for SIEMENS STEP7®.
ATTENTION
Use the corresponding GSD /3/ file based on the version of the GFW product purchased:
BIBLIOGRAPHIC REFERENCES
/1/ IEC 61158, Digital data communications for measurement and control – Fieldbus for use in industrial control system
/2/ PROFIBUS Specification, Normative Parts of PROFIBUS –FMS, -DP, -PA according to the EN 50170
/3/ PROFIBUS Guideline Vol.1 GSD, Specification for PROFIBUS Device Description and Device Integration
/4/ GFW adv 80962x, GFW INSTRUCTIONS AND WARNINGS
/5/ GFW adv 80963x, GFW CONFIGURATION AND PROGRAMMING MANUAL
/6/ GFW_Modbus_V100, GFW - MODBUS MEMORY MAP V.1.00 and subsequent
The GFW-PROFI Fieldbus Interface module installs in GFW products to expand their communication by pro-
viding them with the PROFIBUS DP protocol. It is a bridge between the PROFIBUS network and the MODBUS RTU
network in the GFW.
4 80959A_MSW_GFW-PROFIBUS_11-2013_ENG
TECHNICAL DATA
PROFIBUS Port
Protocol Profibus DP V0 (slave)
Function Connects GFW to a
Profibus DP Master
Baud rate Autosynchronization (9.6 ... 12000 kBit/s)
Connector 9 pin D-Type
Node address HW: 1...99 set with rotary switches on the GFW
SW: 1...124 means of specific software message
I/O dimensions Input/Output: depends on configuration:
min. 39 bytes I/O
max. 71 bytes I/O
Msg. supported Data_Exchange, Slave_Diag, Set_Prm, Chk_Cfg, Get_Cfg, Global_Control, Set-Slave-Add
GSD file GFWH0D76.gsd
Modbus Port
Protocol ModBus RTU (master) RS485 serial
Function Connection to GFW instrument
Baud rate 19200 bps
Connector Not accessible from exterior
Node address 1...99 selectable with rotary switches on the GFW
Diagnostics
LEDS: visible only for installers by removing GFW cover
GREEN Led Operative state of PROFIBUS node
Steady off No communication with PROFIBUS Master
Blink 1,00 sec = state “AUTOMATIC BAUDRATE RESEARCH”
“ “ 0,25 sec = state “WAIT FOR PARAMETRIZATION”
“ “ 0,05 sec = state “WAIT FOR CONFIGURATION”
Steady on State “DATA EXCHANGE”
80959A_MSW_GFW-PROFIBUS_11-2013_ENG 5
PROCESS DATA REFRESH TIMES
The Process Data transferred between GFW-PROFI and the PROFIBUS Master PLC via the PROFIBUS
network are refreshed in the GFW controller via periodic reads/writes by the Modbus subnetwork. Therefore, indepen-
dent of the PROFIBUS network communication speed, the actual refresh of such variables depends on the selected
configuration.
READ CYCLES
WRITE CYCLES
Write cycles enter the date scan cycles in read only when the data has changed; data refresh in read is slo-
wed by an acquisition cycle.
6 80959A_MSW_GFW-PROFIBUS_11-2013_ENG
INSTALLATION
See the /4/ manual, enclosed with the products, for a complete description of installation procedures and gene-
ral electrical connections.
YELLOW LED
RED LED
GREEN LED
1 2 3 4 5
7 P24V Output voltage +24V 220 �
6 7 8 9 9 n.c. n.c.
390 �
When the GFW is the last node of the PROFIBUS network, you have to connect a 220ohm 1/4W termination
resistors between the two “RxD/TxD-P” and “RxD/TxD-N” signals and two 390ohm 1/4W resistors for polarization of
the line between the “VP” signal with “RxD/TxD-P” and between the “DGND” signal with “RxD/TxD-N”.
80959A_MSW_GFW-PROFIBUS_11-2013_ENG 7
In accordance with standard /2/, to guarantee correct communication between PROFIBUS devices, the
shielded cable must have special characteristics:
By using cables with these characteristics, you can obtain the following line length:
Baudrate in Kbit/sec 9,6 19,2 45,45 93,75 187,5 500 1500 3000 6000 12000
Max Length in metres 1200 1200 1200 1200 1000 400 200 100 100 100
GEFRAN S.p.A. supplies PROFIBUS-approved cables and connection systems as accessories for the GFW.
8 80959A_MSW_GFW-PROFIBUS_11-2013_ENG
NODE ADDRESS SELECTION VIA ROTARY SWITCH
The hexadecimal rotary switches on the GFW indicate the
node address of the PROFIBUS network acquired when the unit is
switched on.
Note: Make sure the Profibus Master hardware supports transmission of the above-described message.
80959A_MSW_GFW-PROFIBUS_11-2013_ENG 9
PROFIBUS-DP DATA STRUCTURE
The data exchange structure managed by the GFW-PROFI instruments is based on the type of GFW device
(monophase. twophase, or threephase) and on the consequent configuration selected.
Therefore, the “Configuration Telegram” (SAP 62) has to contain the exact configuration (number of bytes,
format and consistency) of the data exchanged during the “DATA EXCHANGE”(SAP DEFAULT) operating state.
By means of an area of 7 bytes consistent, always present, called Parametric Data, the Master device on the
PROFIBUS network (PLC or Supervisor) can access any parameter of all the GFW connected to the node. By means
of a second area (min. 32 bytes, max. 64 bytes), called Process Data, you can quickly acquire the value of 16 or 32
variables in read and the same number in write of the instrument Modbus map.
With the “Parameterisation Telegram” (SAP 61), the user can select the variables to be attributed to the Pro-
cess Data based on the application.
When the PROFIBUS Master requests diagnostics from the GFW by means of the “Diagnostics Data Request
Telegram” (SAP 60), a packet of 9 bytes is sent, with 7 bytes of standard information and 2 bytes of GFW diagnostics.
Class 2 Profibus Masters can change Slave addresses via the “Set_Slave_Add” function
The PROFIBUS Master sends this to all Slave nodes before entering “DATA EXCHANGE” status; in case of
incorrect configuration, the GFW refuses communication with the Master.
10 80959A_MSW_GFW-PROFIBUS_11-2013_ENG
BYTE DESCRIPTION VALUE (hex)
(16 words I/O GFW threephase)
1 7 bytes consistent B6
2 16 words input/output 74
Before entering “DATA EXCHANGE” status, the PROFIBUS Master uses this protocol to identify itself with the GFW PRO-
FIBUS and specify its operating mode.
The telegram consists of fixed data defined by the PROFIBUS standard (10 bytes) and of data of variable length (minimum
70 bytes, maximum 134 bytes), because each module uses a different number of bytes depending on the number of words to be
transferred for each GFW.
The table indicates parameterisation data for modules with 16 I/O words with “A,” and for modules with 32 I/O words with
“B.”
The telegram is composed by the Hardware Configuration Software of the PROFIBUS Master, which reads the information
contained in the “GSD” file.
80959A_MSW_GFW-PROFIBUS_11-2013_ENG 11
BYTE BYTE DESCRIPTION DEFAULT VALUE(hex)
A B
32 32 Process Data Input 8 LSB 24
33 33 Process Data Input 9 MSB Analog aux 5 input value 06
34 34 Process Data Input 9 LSB 25
35 35 Process Data Input 10 MSB Digital input status 05
36 36 Process Data Input 10 LSB 3D
37 37 Process Data Input 11 MSB Digital output status 06
38 38 Process Data Input 11 LSB 98
39 39 Process Data Input 12 MSB Self/autotuning status 05
40 40 Process Data Input 12 LSB 28
41 41 Process Data Input 13 MSB Ammeter input1 value 1 05
42 42 Process Data Input 13 LSB D4
43 43 Process Data Input 14 MSB Voltmetric input1 f. value 1 05
44 44 Process Data Input 14 LSB 42
45 45 Process Data Input 15 MSB Frequency value 05
46 46 Process Data Input 15 LSB 3B
47 47 Process Data Input 16 MSB Power factor 06
48 48 Process Data Input 16 LSB CC
- 49 Process Data Input 17 MSB Voltage status 06
- 50 Process Data Input 17 LSB BE
- 51 Process Data Input 18 MSB Softstart phase current 1 06
- 52 Process Data Input 18 LSB C5
- 53 Process Data Input 19 MSB Monophase load power 1 06
- 54 Process Data Input 19 LSB CF
- 55 Process Data Input 20 MSB Monophase load imped. 1 06
- 56 Process Data Input 20 LSB ED
- 57 Process Data Input 21 MSB Monophase load voltage 1 06
- 58 Process Data Input 21 LSB EF
- 59 Process Data Input 22 MSB Monophase load current 1 06
- 60 Process Data Input 22 LSB F1
- 61 Process Data Input 23 MSB Load Energy E1 LSW 1 06
- 62 Process Data Input 23 LSB 13
- 63 Process Data Input 24 MSB Load Energy E1 MSW 1 06
- 64 Process Data Input 24 LSB 14
- 65 Process Data Input 25 MSB Load Energy E2 LSW 1 05
- 66 Process Data Input 25 LSB FE
- 67 Process Data Input 26 MSB Load Energy E2 MSW 1 05
- 68 Process Data Input 26 LSB FF
- 69 Process Data Input 27 MSB Dynamic HB Alarm 1 06
- 70 Process Data Input 27 LSB E8
- 71 Process Data Input 28 MSB HB Alarm status 1 06
- 72 Process Data Input 28 LSB 00
- 73 Process Data Input 29 MSB SSR Thermic alarm 06
- 74 Process Data Input 29 LSB 8F
- 75 Process Data Input 30 MSB LOAD Thermic alarm 06
12 80959A_MSW_GFW-PROFIBUS_11-2013_ENG
BYTE BYTE DESCRIPTION DEFAULT VALUE(hex)
A B
- 76 Process Data Input 30 LSB 16
- 77 Process Data Input 31 MSB LINE Thermic alarm 06
- 78 Process Data Input 31 LSB 17
- 79 Process Data Input 32 MSB Derivative Thermic alarm 1 06
- 80 Process Data Input 32 LSB A3
49 81 Process Data Output 1 MSB Controller status_W 05
50 82 Process Data Output 1 LSB 31
51 83 Process Data Output 2 MSB Local SetPoint value 04
52 84 Process Data Output 2 LSB 8A
53 85 Process Data Output 3 MSB SetPoint 1 value 04
54 86 Process Data Output 3 LSB E6
55 87 Process Data Output 4 MSB SetPoint 2 value 04
56 88 Process Data Output 4 LSB E7
57 89 Process Data Output 5 MSB Control output value 1 04
58 90 Process Data Output 5 LSB FC
59 91 Process Data Output 6 MSB Alarm point 1 value 04
60 92 Process Data Output 6 LSB 0C
61 93 Process Data Output 7 MSB Alarm point 2 value 04
62 94 Process Data Output 7 LSB 0D
63 95 Process Data Output 8 MSB Alarm point 3 value 04
64 96 Process Data Output 8 LSB 0E
65 97 Process Data Output 9 MSB Alarm point 4 value 04
66 98 Process Data Output 9 LSB 3A
67 99 Process Data Output 10 MSB Alarm HB input1 value 04
68 100 Process Data Output 10 LSB 37
69 101 Process Data Output 11 MSB No data 05
70 102 Process Data Output 11 LSB CE
71 103 Process Data Output 12 MSB No data 05
72 104 Process Data Output 12 LSB CE
73 105 Process Data Output 13 MSB No data 05
74 106 Process Data Output 13 LSB CE
75 107 Process Data Output 14 MSB No data 05
76 108 Process Data Output 14 LSB CE
77 109 Process Data Output 15 MSB No data 05
78 110 Process Data Output 15 LSB CE
79 111 Process Data Output 16 MSB No data 05
80 112 Process Data Output 16 LSB CE
- 113 Process Data Output 17 MSB SetPoint remote value 04
- 114 Process Data Output 17 LSB FA
- 115 Process Data Output 18 MSB Digital output value 05
- 116 Process Data Output 18 LSB 58
- 117 Process Data Output 19 MSB Analog input1 serial 05
- 118 Process Data Output 19 LSB 5B
- 119 Process Data Output 20 MSB Analog input serial 06
80959A_MSW_GFW-PROFIBUS_11-2013_ENG 13
BYTE BYTE DESCRIPTION DEFAULT VALUE(hex)
A B
- 120 Process Data Output 20 LSB 45
- 121 Process Data Output 21 MSB Analog input2 serial 05
- 122 Process Data Output 21 LSB 5C
- 123 Process Data Output 22 MSB Analog input3 serial 06
- 124 Process Data Output 22 LSB 42
- 125 Process Data Output 23 MSB Analog input4 serial 06
- 126 Process Data Output 23 LSB 43
- 127 Process Data Output 24 MSB Analog input5 serial 06
- 128 Process Data Output 24 LSB 44
- 129 Process Data Output 25 MSB Analog output5 serial 06
- 130 Process Data Output 25 LSB 7F
- 131 Process Data Output 26 MSB Analog output6 serial 06
- 132 Process Data Output 26 LSB 80
- 133 Process Data Output 27 MSB Analog output7 serial 06
- 134 Process Data Output 27 LSB 81
- 135 Process Data Output 28 MSB Analog output8 serial 06
- 136 Process Data Output 28 LSB 82
- 137 Process Data Output 29 MSB No data 05
- 138 Process Data Output 29 LSB CE
- 139 Process Data Output 30 MSB No data 05
- 140 Process Data Output 30 LSB CE
- 141 Process Data Output 31 MSB No data 05
- 142 Process Data Output 31 LSB CE
- 143 Process Data Output 32 MSB No data 05
- 144 Process Data Output 32 LSB CE
The “GSD Version” value is fixed in the GSD file and cannot be changed. The FW uses it to identify the ver-
sion of the GSD file that the PLC application SW uses to configure the board in order to ensure functional compatibility.
“Data Type” indicates how many Process Data variables are used for that Profibus node. It must match the
number read by the FW during initialisation of the Modbus network, otherwise Profibus communication is not activated
(1=16 words, 2=32 words).
“Error Behaviour” defines how the controller must act if Profibus network communication is interrupted
0 = None Operative state does not change (default for compatibility with previous versions)
1 = Switching Off Switches to “SW OFF” (OFF)
2 = Manual Mode Switches to “Manual” (MAN)
3 = Setpoint SP2 Switches to setpoint 2 (SP2) (activates only if parameter “hd.1” = 1)
At “Power-ON,” the GFW controller goes to the operative state (ON/OFF, MAN/AUTO,SP1/
SP2) it was in at the previous “Power-OFF.”
If communication is interrupted (for example, PLC in “STOP” or broken PROFIBUS cable),
the GFW goes to the required operative state as defined by the Error Behaviour parameter.
If communication is restored without switching off the GFX4s, all of them return to the ope-
rative state defined by “Power-ON.”
If the GFW is shut down while in “Error,” it will remain in this state at the next “Power-On” until
communication with the PLC is restored.
14 80959A_MSW_GFW-PROFIBUS_11-2013_ENG
“Startup Delay” is the delay in msec for sending Output Process Data to the temperature controllers after
switching to “DATA EXCHANGE” state. It prevents the delay in refresh of PLC peripheral variables from transferring
incorrect values to the GFX4s.
It can be set from 0msec to 10000msec (default: 3sec).
The “Swap bytes” parameters lets you invert the position of the MSB byte with LSB in the Process Data to
facilitate the interpretation of values from different PLCs (YES=SIEMENS STEP7).
“Process Data Input..” and “Process Data Output.” configure which temperature controller variables you
want to communicate to the PLC with the “Data Exchange Telegram” (SAP DEFAULT).
When the PROFIBUS Master requests diagnostic information from GFW-PROFIBUS, it responds with 6 stan-
dard information bytes and 3 specific bytes.
In which:
xx TEXT DESCRIPTION
00 - No active alarm
01 DEVICE “n” TIMEOUT No Modbus communication with GFW
02 DEVICE “n” UNKNOWN Instrument unknown
04 DEVICE “n” SETTING Dip switch GFW not correct
08 DEVICE “n” WRITE ERROR Written value not correct
Note. : The PLC must manage the specific diagnostics for each zone (Active alarms, broken input, HB, etc.) by reading
Modbus variables “Instrumentation Status 1” via FB “OPGEFLEX” for Parametric Data or by selecting these variables
in Process Data via the initial configuration.
80959A_MSW_GFW-PROFIBUS_11-2013_ENG 15
DATA EXCHANGE (SAP DEFAULT)
After checking the correct configuration and parameterisation of the GFW-PROFIBUS by means of the tele-
grams seen above, the PROFIBUS Master activates the “DATA EXCHANGE” protocol in which it cyclically sends some
output bytes and reads some input bytes to the PROFIBUS Slaves.
The number of I/O bytes depends on the selected configuration: an area of 7 bytes, always present in all configura-
tions, represents “Parametric Data”, while the “Process Data” area varies from a minimum of 32 bytes to a maximum
of 64 bytes.
PARAMETRIC
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ≈ 64 65 66 67 68 69 70 71
PARAMETRIC
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ≈ 64 65 66 67 68 69 70 71
The “Parametric Data” let you read or write any MODBUS variable, either in bit format or in word format, pre-
sent in the GFX4 devices connected to the PROFIBUS node.
PARAMETRIC DATA
16 80959A_MSW_GFW-PROFIBUS_11-2013_ENG
Reading a bit: Function Code 1 or 2
Request bytes
Reply bytes
80959A_MSW_GFW-PROFIBUS_11-2013_ENG 17
In case of error, 80 hex plus the request procedure code will be returned in place of the procedure code.
Reply bytes
18 80959A_MSW_GFW-PROFIBUS_11-2013_ENG
As described above, “Process Data” represent the MODBUS variables configured via the Parameterisation
Telegram. The GFW occupies 16 or 32 words of the Process Data area depending on the selection made.
The table indicates Process Data with 16 I/O words with “A,” and Process Data with 32 I/O words with “B.”
80959A_MSW_GFW-PROFIBUS_11-2013_ENG 19
BYTES BYTES INPUT PROCESS DATA OUTPUT PROCESS DATA
A B
- 51 Process Data Input 22 LSB Process Data Output 22 LSB
- 52 Process Data Input 23 MSB Process Data Output 23 MSB
- 53 Process Data Input 23 LSB Process Data Output 23 LSB
- 54 Process Data Input 24 MSB Process Data Output 24 MSB
- 55 Process Data Input 24 LSB Process Data Output 24 LSB
- 56 Process Data Input 25 MSB Process Data Output 25 MSB
- 57 Process Data Input 25 LSB Process Data Output 25 LSB
- 58 Process Data Input 26 MSB Process Data Output 26 MSB
- 59 Process Data Input 26 LSB Process Data Output 26 LSB
- 60 Process Data Input 27 MSB Process Data Output 27 MSB
- 61 Process Data Input 27 LSB Process Data Output 27 LSB
- 62 Process Data Input 28 MSB Process Data Output 28 MSB
- 63 Process Data Input 28 LSB Process Data Output 28 LSB
- 64 Process Data Input 29 MSB Process Data Output 29 MSB
- 65 Process Data Input 29 LSB Process Data Output 29 LSB
- 66 Process Data Input 30 MSB Process Data Output 30 MSB
- 67 Process Data Input 30 LSB Process Data Output 30 LSB
- 68 Process Data Input 31 MSB Process Data Output 31 MSB
- 69 Process Data Input 31 LSB Process Data Output 31 LSB
- 70 Process Data Input 32 MSB Process Data Output 32 MSB
- 71 Process Data Input 32 LSB Process Data Output 32 LSB
20 80959A_MSW_GFW-PROFIBUS_11-2013_ENG
USING GFW-PROFIBUS WITH SIEMENS STEP7
CONFIGURATION
The “GFWH0D76.GSD” file contains the information needed to manage a GFW Slave PROFIBUS DP node. This
file must be installed in SIEMENS Step7 programming environment in order to insert the GFW in the PROFIBUS network
hardware configuration.
“CATALOG” AREA
GFW
HIGH PERFORMANCE
“CONNECTOR
POSITION” AREA
GFW Module
80959A_MSW_GFW-PROFIBUS_11-2013_ENG 21
UTILIZZO GFW-PROFIBUS CON SIEMENS STEP7
The first 7 I/O bytes (ID 182), called “Consistency” in the figure, correspond to addresses PEB 256 ... PEB 262;
PAB 256 ... PAB 262 and represent “Parametric Data.”
The next 64 bytes (ID 127) (PEB263..PEB326 e PAB263..PAB326) represent “Process Data.”
Always check that the Hardware configurator gives contiguous memory addresses for all the rack zo-
nes. In case of “holes” or jumps, manually assign the first address to a zone known to be free.
The E addresses (inputs) must be the same as the A addresses (output).
During the GFW hardware configuration it is useful to reserve the memory area for a maximum of 16
usable zones for each rack.
PARAMETERISATION
As seen above, you can attribute a variable of the Modbus Memory Map on the pull-down menu to each of the
16 or 32 I/O words available for each GFW device.
These data are cyclically shown in the assigned data block by using FC3 CFG-GFX4-HP (see specific chap-
ter).
INPUT AREA data are cyclically read by the GFWs, while OUTPUT AREA data are written in the
controller only if a data item is changed.
22 80959A_MSW_GFW-PROFIBUS_11-2013_ENG
STANDARD SLAVE DIAGNOSTICS AREA
This area is legible with SFC 13 “DPNRM_DG”. See the Siemens Step 7 manual for operating instructions.
In addition to standard bytes, the slave provides extended diagnostic data with a word.
Address “125” resets the assignment of the node address via reading of the rotary switch.
Connect the cable of the work station (PC or PG) directly to the GFW to which the address will be
assigned, without connection to the PROFIBUS Master PLC.
80959A_MSW_GFW-PROFIBUS_11-2013_ENG 23
“Gefran” SW LIBRARIES FOR SIEMENS S7
INSTALLATION
GEFRAN S.p.A. supplies a series of library files to facilitate the installation and management of process data for
GFW products in SIEMENS STEP7 environment.
These libraries are contained in a compressed file (Gefran.zip) on the CD enclosed with the products or downlo-
adable from www.gefran.it.
After launching “SIMATIC Manager,” select the “Retrieve” command on the “File” pull-down menu and open the
“Gefran.zip” file from the folder to which it was copied.
24 80959A_MSW_GFW-PROFIBUS_11-2013_ENG
The version that manages GFW is “GFW_v0_1”.
It contains Function Blocks, Data Blocks, and Functions:
80959A_MSW_GFW-PROFIBUS_11-2013_ENG 25
USER DATA TYPES
UDT9 “GFXRcp”
The resulting “DBx” data block contains the recipe name and the list of MODBUS addresses corresponding to the GFW
variables to be saved:
26 80959A_MSW_GFW-PROFIBUS_11-2013_ENG
80959A_MSW_GFW-PROFIBUS_11-2013_ENG 27
UDT10, UDT11 “GFX4-HP_nnxn”
Use the “User Data Type” corresponding to the selection made in HW configuration; the “DBx” data block will
have a different composition based on the selection.
For example, the following table shows block corresponding to UDT10 “GFX4-HP_32x1”:
28 80959A_MSW_GFW-PROFIBUS_11-2013_ENG
80959A_MSW_GFW-PROFIBUS_11-2013_ENG 29
FUNCTION CALL
FC3 “CFG-GFW-HP”
This function provides the entire area of process data exchange between PLC and GFW in the data block crea-
ted with UDT3 described above.
FC3 is called in OB1 without conditions so that each scan will refresh the data.
First Byte
30 80959A_MSW_GFW-PROFIBUS_11-2013_ENG
FUNCTION BLOCKS
All Function Blocks require a freely assignable instance DB. They must be called only on request and kept
active until the operation is done.
Typically, you set a Bit that enables the branch (EN) and is reset with the rising edge of the “Done” bit.
FB1 “OPGeflex”
The block requires 5 input parameters and replies with 4 output parameters.
Input parameters:
DBNr (INT) data block number assigned to the rack containing the GFW to be interrogated or controlled.
1.
SlaveNr (INT): MODBUS address of the slave to be operated.
2.
OPCode (INT): operation code that tells the function if we want to read or write a word or a bit.
3.
The operation codes are:
• 1 = Bit read Operation Code
• 3 = Word read Operation Code
• 5 = Bit write Operation Code
• 6 = Word write Operation Code
Address (INT): address of word or bit to be read or written (see manual /6/ for identification of MODBUS
4.
addresses of words and bits).
INValue (INT): value to be written in the selected word or bit.
5.
Obviously, when writing a bit, only values 1 and 0 are allowed. This parameter is ignored in read operations.
80959A_MSW_GFW-PROFIBUS_11-2013_ENG 31
Output parameters:
FB15 “GFX_RCP”
Stores a set of parameters from a GFX4 in a DB or sends a set of parameters contained in a DB to a GFW.
32 80959A_MSW_GFW-PROFIBUS_11-2013_ENG
Input parameters:
DB_GFX (INT) indicates the number (only the number in figures or an INT variable containing its value) of DB
1.
assigned to rack of GFWs to be operated.
DBIST (BLOCK_DB): indicates the name (use symbolic name of DB or in full the indication “DBxx” ) of instance
2.
DB of FB1 “OPGeflex” assigned to this rack of GFWs.
GFXNr (INT): address of GFW to be operated.
3.
RCP_DB (INT): number of DB in which you want to write or from which you want to read the data set.
4.
Funct (BOOL): specifies the type of operation to be done:
5.
False = Store (saves GFW parameters in DB)
True = Load (downloads parameters saved in DB into GFW)
ParamNr (INT): number of parameters to be saved/read.
6.
ParamListDB (INT): number of DB in which modbus address of parameters to be read/written is specified
7.
on each line.
Output parameters:
1Illegal function
2 Illegal data address
3 Illegal data value
6 Slave device busy
9 Illegal number data
10 Read only data
20 Timeout Communication
21 Input value error
4. ErrorParamNr (INT): in case of error, the ordinal number of the DB is given, with a list of addresses of the
parameter that caused the error.
80959A_MSW_GFW-PROFIBUS_11-2013_ENG 33
GEFRAN spa
via Sebina, 74
25050 Provaglio d’Iseo (BS) Italy
Tel. +39 0309888.1
Fax +39 0309839063
info@gefran.com
http://www.gefran.com