13.07.2015 Views

Remote access to the WAGO Ethernet controller/coupler using an ...

Remote access to the WAGO Ethernet controller/coupler using an ...

Remote access to the WAGO Ethernet controller/coupler using an ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8 • Program Description5 Program Description5.1 CoDeSys ProgramIllustration 5.1 shows <strong>the</strong> set-up of <strong>an</strong> example program in <strong>the</strong> CoDeSys software.Illus. 5.1: CoDeSys programThe declared variables are distinguished according <strong>to</strong> bit <strong>an</strong>d register <strong>access</strong><strong>an</strong>d are referenced at <strong>the</strong> corresponding flag addresses. These flags c<strong>an</strong> <strong>the</strong>nbe read <strong>an</strong>d described <strong>using</strong> corresponding MODBUS addresses.5.2 Determining <strong>the</strong> MODBUS AddressesThe MODBUS addresses for bit <strong>an</strong>d register <strong>access</strong>, which are a function ofcommunication direction, are listed in <strong>the</strong> following tables.NoteThe included tables show only <strong>an</strong> excerpt of <strong>the</strong> MODBUS communicationaddresses. The complete tables are available in <strong>the</strong> m<strong>an</strong>uals for <strong>the</strong> <strong>controller</strong><strong>an</strong>d <strong>coupler</strong> in <strong>the</strong> chapter “MODBUS Access Mapping”.Application Note

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!