gefran GFX4-ETHERNET User manual

1
80403B_MSW_GFX4-ETHERNET_01-2021_ENG
GFX4-ETHERNET
INDEX
1Introduction 2
2Features 2
3Dip-switch function 2
4 SetupPC Connection 4
5 TestBoardConnectionUsingPING Command 8
6 ConnecttheBoardtoYourLAN 8
7 GFX4-ETH’sModbusTCP/IP implementedcommand 9
INSTALLATION AND
OPERATION MANUAL
Software Version: 1.0x
Code: 80403B /Edition 02 - 01-2021 ENG

280403B_MSW_GFX4-ETHERNET_01-2021_ENG
1 • Introduction
TheGFX4-ETHmodule isIEEE802.3compliantsupportingEthernetoperationforMODBUS TCP/IP communication
architecture.
2 • Features
• IEEE802.3compliant
• Full-duplexandhalf-duplexmodes
• Capableofsupportingboth10Mbpsand100Mbpsdatarates
• SingleRJ45connectionwithledsindicator(yellow=link,green=activity)
• Onesocketavailable
• AllMODBUS/TCPADUaresentviaTCPonregisteredport502
• Defaultaddress:192.168.1.100
• Subnetmask:255.255.255.0
• Defaultgateway:192.168.1.1
MODBUS
TCP/IP
CLIENT
MODBUS
TCP/IP
CLIENT
MODBUS
TCP/IP
SERVER
MODBUS
TCP/IP
SERVER
MODBUS
SERIAL
CLIENT
Client
TCP/IP
MODBUS
GEFLEX
SLAVE n
GEFLEX
SLAVE n + 1
GFX4-ETH
MODBUS Serial
GEFLEX NETWORK
3 • Dip-switch Function
OntheGFX4-ETHcardtherearetwoDip-switchesforthefollowingfunctions
Dip-switch1:resetofthedefaultparameters
Dip-switch2:baud-rateselection

3
80403B_MSW_GFX4-ETHERNET_01-2021_ENG
3.1 Resetting Parameters to Factory Defaults
Atanymoment,alloftheGFX4-ETHboardparameterscanberestoredtothefactorydefaultsettings.
To do so:
1. SetDipSwitchS1dip1=ON(locatednearRJ45connector)
2. RestartGFX4-ETHboard
3. SetDipSwitchS1dip1=OFF
3.2 Selecting the Baud rate
Selectthebaudrate(10Mbit/sor100Mbit/s)withDip-switch2.
1.Setting Dip-switch2=ONfor10Mbit/s
Dip-switch2=OFFfor100Mbit/s(default)
2.Reboottheboard
Note:ifusedonPC-compatiblesystems,itisadvisabletosupplythetableofARPaddresses
Ex.:ARP-Dcontrol
Inothersystems(PLC)notequippedwiththiscontrol,itisadvisabletoswitchoffandthenon.

480403B_MSW_GFX4-ETHERNET_01-2021_ENG
4 • Setup PC Connection
AlltheinformationinthisquickguiderequirethattheGFX4-ETHcommunicateswiththehostPCthroughaLANcon-
nection.
Inthispagesyou’lllearnhowtoconfigurethePCtocommunicatewiththeGFX4-ETHusinganEthernetcrosscable
orhub/switch.ThefollowingstepsarebasedonaWindowsXPsystem.
1. OpentheWindowsControlPanelandopentheNetwork.Connectionsitem:
2. IfaLocalAreaConnectionisalreadyavailable,gotostep8.
Otherwise,runthe“NewConnection”wizard.

5
80403B_MSW_GFX4-ETHERNET_01-2021_ENG
3. Thefollowingdialogboxwillappear. ClickNext.
4. Onthenextdialogbox,selectthe“ConnecttotheInternet”optionandclickthe“Next”button.
5. Onthenextdialogbox,selectthe“Setupmyconnectionmanuallyoptionandclickthe“Next”button.

680403B_MSW_GFX4-ETHERNET_01-2021_ENG
7. Whenthelastdialogboxappears,clickthe“Finish”button.
8. Openthenewlycreatedconnection(ortheexistingconnectionifyouarecomingfromstep2)andclickthe
“Properties”button.
6. Onthenextdialogbox,selectthe“Connectusingabroadbandconnectionthatisalwayson”optionandclickthe
“Next”button.

7
80403B_MSW_GFX4-ETHERNET_01-2021_ENG
Clickthe“OK”buttononallLAN setupdialogboxes.
9. Selectthe“InternetProtocol(TCP/IP)”itemandclickthe“Properties”button.
10. Ifyouhavestartedfromanexistingconnection,writedownalloftheTCP/IPparameters.You’llneedthemlaterto
restoreyourLANsettingstotheoriginalparameters.
11. Selectthemanualsettingsandtypeinthefollowingvalues:
IPaddress:192.168.1.101
Subnetmask:255.255.255.0

880403B_MSW_GFX4-ETHERNET_01-2021_ENG
5 • Test Board Connection Using PING Command
1. PoweruptheboardandverifythePOWERledturnon.
2. ConnecttheGFX4-ETHtothePCthroughanEthernetcrosscableorhub/switch.
3. OpenaCommandPromptwindow(onWindowsXP,fromtheWindowsStartmenu,selectRun,enterCMDand
clickthe“OK”button).
4. Atthecommandprompt,type:PING192.168.1.100
5. Iftheconnectionhasbeenproperlysetup,thePINGcommandwillreturnapositivefeedback.
6 • Connect the Board to Your LAN
BeforeconnectingtheGFX4-ETHboardtoyourLAN,theIPaddressmustbechangedtomatchtheLANsettings.
TochangetheGFX4-ETH’sIPaddress,dothefollowing.
1. WiththeGFX4-ETHstillconnectedtothePCviatheEthernetcrosscableorhub/switch,launchthe
SetIp_for_Geflex/GFX4(seeGF_eXpressdocumentation) utilitythatislocatedintheCD-ROM.
2. TosetuptheNodefieldnumbersothatorincompliancewiththerealvalueoftherotaryofcardGFX4-ETH.
3. Press the Get current IPbutton.YoucanseeactualIPaddress,subnetmask,defaultgatewayandMAC
adress.
4. SetyourparameterandafterclickonSet new IPbutton.
5. RestarttheGFX4-ETHboard.
6. Gototostep2ifyouwanttoseenewparameter.

9
80403B_MSW_GFX4-ETHERNET_01-2021_ENG
7 • GFX4-ETH’s Modbus TCP/IP implemented command
• 01(0x01)ReadCoils
• 02(0x02)ReadDiscreteInputs
• 03(0x03)ReadHoldingRegisters
• 04(0x04)ReadInputRegisters
• 05(0x05)WriteSingleCoil
• 06(0x06)WriteSingleRegister
• 15(0x0F)WriteMultipleCoils
• 16(0x10)WriteMultipleregisters
The MODBUS protocol defines a simple Protocol Data Unit (PDU) independent of the underlying communication
layers.ThemappingofMODBUSprotocolonspecificbusesornetworkscanintroducesomeadditionalfieldsonthe
ApplicationDataUnit(ADU).
General Modbus Frame
Additional address Function code Data Error check
ADU
PDU
TheclientthatinitiatesaMODBUStransactionbuildstheMODBUSApplicationDataUnit.
Thefunctioncodeindicatestotheserverwhichkindofactiontoperform.
MODBUS request/response over TCP/IP
MBAP Header Function code Data
MODBUS TCP/IP ADU
PDU

10 80403B_MSW_GFX4-ETHERNET_01-2021_ENG
AdedicatedheaderisusedonTCP/IPtoidentifytheMODBUSApplicationDataUnit.ItiscalledtheMBAPheader
(MODBUSApplicationProtocolheader).
ThisheaderprovidessomedifferencescomparedtotheMODBUSRTUapplicationdataunitusedonserialline:the
MODBUS‘slaveaddress’fieldusuallyusedonMODBUSSerialLineisreplacedbyasinglebyte‘UnitIdentifier’within
theMBAPHeader.
The‘UnitIdentifier’isusedtocommunicateviadevicessuchasbridges,routersandgatewaysthatuseasingleIP
addresstosupportmultipleindependentMODBUSendunits.
AllMODBUSrequestsandresponsesaredesignedinsuchawaythattherecipientcanverifythatamessageisfini-
shed.
ForfunctioncodeswheretheMODBUSPDUhasafixedlength,thefunctioncodealoneissufficient.
Forfunctioncodescarryingavariableamountofdataintherequestorresponse,thedatafieldincludesabytecount.
WhenMODBUSiscarriedoverTCP,additionallengthinformationiscarriedintheMBAPheadertoallowtherecipient
torecognizemessageboundariesevenifthemessagehasbeensplitintomultiplepacketsfortransmission.
Theexistenceofexplicitandimplicitlengthrules,anduseofaCRC-32errorcheckcode(onEthernet)resultsinan
infinitesimalchanceofundetectedcorruptiontoarequestorresponsemessage.
TheMBAPHeadercontainsthefollowingfields:
Theheaderis7byteslong:
1. Transaction Identifier-ItisusedfortransactionpairingtheMODBUSservercopiesintheresponsethe
transactionidentifieroftherequest.
2. Protocol Identifier-Itisusedforintra-systemmultiplexing.TheMODBUSprotocolisidentifiedbythevalue0.
3. Length-Thelengthfieldisabytecountofthefollowingfields,includingtheUnitIdentifieranddatafields.
4. Unit Identifier (Rotary switch value see Geflex Software Manual)-Thisfieldisusedforintra-systemrouting
purpose.ItistypicallyusedtocommunicatetoaMODBUSseriallineslavethroughagatewaybetweenan
EthernetTCP-IPnetworkandaMODBUSserialline.ThisfieldissetbytheMODBUSClientintherequestand
mustbereturnedwiththesamevalueintheresponsebytheserver.
Fields Length Description Client Server
Transaction 2Bytes Identificationofa Initializedbytheclient Recopiedbytheserver
Identifier MODBUSRequest/ fromthereceivedrequest
Responsetransaction
Protocol 2Bytes 0=MODBUS protocol Initializedbytheclient Recopiedbytheserver
Identifier fromthereceivedrequest
Length 2Bytes Numberoffollowingbytes Initializedbytheclient Initializedbytheserver
(request) (Response)
Unit Identifier 1Byte Identificationofaremote Initializedbytheclient Recopiedbytheserver
slaveconnectedonaserial fromthereceivedrequest
lineoronotherbuses

11
80403B_MSW_GFX4-ETHERNET_01-2021_ENG
GEFRAN spa
viaSebina7425050Provagliod’Iseo(BS)Italy
Tel.+390309888.1Fax+390309839063-[email protected]-http://www.gefran.com
Serial communication time constraints in Modbus RTU
Thefollowingtimeconstraintsmustbecompliedwithinordertoallowcorrectserialdataexchangewiththedevice:
ReadingWord/Registerparameters:ReadingNconsecutiveparameters,withNfrom1to16,requiresatimeofalmost50
ms.InthiscasethefollowingreadandwriteModbuscommand,tothesamenode,mustbesentafterthisintervaltime.
WritingWord/Registerparameters:WritingNconsecutiveparameters,withNrangingfrom1to16,ifallvalues(maximum
16)onthedeviceareupdated,willtakeatimeof:50ms+Nx80ms(*)withNfrom1to16.
ThetimesreportedrefertothecaseinwhichtheBaudrateoftheserialline(parameterbAuModbusaddress45)is19200.
(*)IfSTATUS_Wparameters(Modbusaddress305)areincludedinthewriterequestandtheirvalueisdifferentfromtheonecurrentlypresentintheslave,thetimerequired
towriteeachonewillbe240ms(insteadof80ms).
Other gefran Control Unit manuals

gefran
gefran R-MIX User manual

gefran
gefran R-E16 User manual

gefran
gefran EXP-DN-BDI-VDI User manual

gefran
gefran R-MIXR User manual

gefran
gefran GFW adv Series Quick guide

gefran
gefran GEFLEX Product manual

gefran
gefran R-U16 User manual

gefran
gefran EXP-TCPIP-BDI/VDI How to use

gefran
gefran R-MA6 User manual

gefran
gefran R-TC8 User manual

gefran
gefran R-C3 User manual

gefran
gefran GTS-T 10 Series Instruction manual

gefran
gefran R-A/D8 User manual

gefran
gefran R-D/A4 User manual

gefran
gefran SW5-SA User manual

gefran
gefran R-CPU300 User manual

gefran
gefran R-SW5 User manual

gefran
gefran SIEIDrive E-ABS User manual

gefran
gefran R-GCANs User manual