Home
BCS Tools/Nexto - Modbus TCP and Crevis I/O
Contents
1. Beier often Z ELECTRONICS BCS Tools Nexto Modbus TCP and Crevis I O K100350 2013 08 1 Function and area of use This Start Up document describes the necessary steps to be taken when configuring Modbus TCP with Crevis I O in a Nexto system 2 About this Start Up document This Start Up document should not be considered as a complete manual It is an aid to be able to start up a normal application quickly and easily In this document the following software and hardware has been used Software e BCS Tools 1 31 Hardware e Beier Electronics NX3010 CPU e Decentralized I O Crevis I O This document and other Start Up documents can be obtained from our homepage Please use the address manual beijer se for feedback on our Start Up documents Page 28 Beijer Electronics Automation AB a company in the Beijer Electronics Group Parent Company Reg office Subsidiaries Beijer Electronics Automation AB Norway Drammen Beijer Electronics AS 47 32 24 30 00 P O Box 426 Finland Helsinki Beijer Electronics Oy 358 207 46 35 40 SE 201 24 MALMO SWEDEN Denmark Copenhagen Beijer Electronics A S 45 70 26 46 46 Telephone 46 40 35 86 00 Estonia Tallin Beijer Electronics Eesti OU 1 372 6 518140 Fax 46 40 93 23 01 Latvia Riga Beijer Electronics SIA 371 7 842280 Visitor s address Stora Varvsgatan 13A Malm Lithuania Vilnius Beijer Electronics UAB 370 5 2323101 Reg no 556701 3965 VAT no
2. BCS Tools Standard Project Choose the project profile configuration and the wizard will create the following objects within the project Se pies amp Choose the project profile Basic Choose the default language for all programs Function Block Diagram FBD lt Previous Next gt In the Basic project profile the application has a user task from the Freewheeling type called MainTask which executes the program in a continuous loop with no definition of cycle time with priority fixed in 13 This task is responsible for the execution of a single programming unit POU called MainPrg It is important to stress that the cycle time can vary according with communication task quantity used as in this mode the main task is interrupted by communication tasks This profile allows the inclusion of two interruption tasks with higher priority which can preempt the MainTask at any moment the task called ExternInterruptTask00O is an interruption task from the Extern type with priority fixed in 02 the task called TimeInterruptTask00 is an interruption task from the cyclic type with priority fixed in 1 Ee ae ee f o c l a a aU For details about the other profiles refer to the CPU User s manual 5 28 g dot 070221 Kl_en BCS Tools Nexto Modbus TCP and Crevis I O Choose the prefered programming language for the freewheeling task BCS Tools Standard Project Choose the language
3. Configuration Bus i Device Communication Settings Users and Groups Select the network path to the controller Gateway 1 0080 9000 200C 0A65 DD34 Set active path Fie Gateway 1 Ti NX3010 Exa fA INx3010_Example 0080 9000 2DDC 0465 0D34 ae Add gateway Node Address 0080 9000 2DDC 0A65 D D34 Target ID When the cpu has been found click the button Set active path The cpu in the list will be bold to indicate that this is the path that will be used when an online action 1s made Configuration Bus ff Device Communication Settings Files Log Users and Groups Access Rights Information Select the network path to the controller Gateway 1 0080 9000 2DDC 0465 0034 www beijer se 21 28 g dot 070221 Kl_en BCS Tools Nexto Modbus TCP and Crevis I O KI00350 2013 08 To download the project click the Login button and click the Yes button project BCS Tools jg Tools Window Help dh oS ry 0080 9000 2DDC 0 465 DD34 Are you sure to login to the node NAS010_ Example with address jon If the cpu is empty or if there is another project running BCS Tools will prompt the user to confirm the download The cpu will be stopped and the older project will be overwritten Warning An unknown version of the application Application is currently in RUN mode on the PLC However do you want to download the latest code and replace the existing application Please
4. a Task Configuration ee ExternInterruptTask00 MainTask Be TimelInterruptTask00 H Configuration Bus Description MODBUS TCP Client or MODBUS RTU m o COM 2 via TOP Client Append selected device as last child of NET 1 You can select another target node in the navigator while this window is open Edit Object With www beijer se 10 28 BCS Tools Nexto Modbus TCP and Crevis I O KI00350 2013 08 5 5 Add the Modbus TCP slave To add the Modbus TCP slaves double click the newly inserted device Modbus_ Client then click the Add button and enter a name and the IP address of the slave For further details about other settings refer to the cpu User s manual File Edit View Project Build Online Debug Tools Window Help Aaa wRlo A Se QOS gt all g 5 Devices W Configuration Bus A MODBUS_Client z zis 45 ProgramExample_NX3010_ModbusT _Gevisi amp J Device Nx3010 MODBUS Client Configuration 3 ag 3 H PLCLogic Client Settings z 3 0 Application a Proioad Bill of Materials RTU via TCP aa Configuration and Consumption Size S fia i P 20 a TCP Diagnostic Explorer 7 13 Diagnostics Used range QB22040 QB22059 MODBUS Settings F oa ModbusTcP_to PDevices i Library Manager w Panao 1g 0 MODBUS_Device 2 _VEV Destination IP 10 101 221 53 TCP Port 50
5. Kl_en www beijer se 28 28
6. Output Register Data IP Address 10 101 221 53 Subnet Mask 255 255 252 0 Gateway 110 101 223 254 MAC Address 00 14 F7 00 18 55 Bootp Enabled IP address change via ARP Enabled TCP Connections 7 HTTP Connections 6 MODBUS TCP Connections 1 Firmware Revision 1 008 10 20 2009 Input Image Mode 2 Output Image Mode 0 Wii ow i www beijer se 13 28 g dot 070221 Kl_en BCS Tools Nexto Modbus TCP and Crevis I O K1I00350 2013 08 Click the Expansion Module button to get more details of the mapping r cal amp http 10 101 221 53 P BS X GS rio NA 9189 Modbus TC x FnlO S Series The Creative present makes Vision of future CREVIS www crevis co kr Network Adapter Network Adapter FniO NA 9189 Modbus TCP Network Adapter Slot 1 ST 3702 FnIO 2 RTD Resistance Input Slot 2 ST 1218 FnlO 8 Sinking In 24Vdce Slot 3 ST 2744 FnlO 4 Relay Out 230Vac 2A 0x0800 0 It s recommended to always install analog modules before digital to avoid a possible byte separation of a 16bit input word The following is a example of a byte separation NA 9189 ST 1218 ST 3702 ST 2744 Input Mode 2 Uncompressed Input Processing Data without Status Output Mode 0 Uncompressed Output Processing Data Slot Model Input Bit Output Wo Gi 00 NA 9189 aip 01 ST 1218 02 ST 3702 03 ST 2744 Address value will be changed depending on project value www beij
7. 28 g dot 070221 Kl_en BCS Tools Nexto Modbus TCP and Crevis I O K100350 2013 08 e Run Autoscan in IO Guide Pro to receive the configuration the green antenna icon sown belowe e You can now check and monitor the NA 9189 in IO Guide Pro gt File Edit View Online Options Tools Help BER OIBG S Ce x Mle ae ele BI Ol S ee fre Number Ethernet Address MAC www beijer se 9 28 g dot 070221 Kl_en BCS Tools Nexto Modbus TCP and Crevis I O K1I00350 2013 08 5 4 Add the Modbus Client device The next step is to insert the Modbus TCP client device on the NET1 interface This is done by right clicking the NET1 port and choose Add device and select the Modbus Client device H S r TOL i ar IL Mal mo 5 k AS Ta oes WIC qo l 15 S l LT aly SL I af E T DA Pi Os iniii iii E i File Edit View Project Build Online Debug Tools Window Help la ale LETI CT OR S fi Device Nx3010 S E PLCLogic A Bill of Materials Append device Insertdevice Plug device Update device 3 Configuration and Consumption pii H Diagnostic Explore Vendor g Diagnostic Name Vendor g ModbusTcP Io J moosus H Library Manager i MODBUS Ethernet 2 HF Performance PRG fj MODBUS Client SF ExternInterruptPrg00 PRG ii MODBUS Client WAA MainPra PRG i pam BUS Server h TimeInterruptPrq00 PRG
8. Default Gateway 192 168 123 254 The addess can be changed in two ways e The basic way is by using ARP commands from the command promt This is explained further down e The most intuitive way to change the addresses is to use the Bootp server tool in the software IO Guide Pro currently Windows XP is recommended to use To setup using ARP commands follow these steps Note The IP can only be changed to another within the same subnet Command Prompt gt ping 192 168 123 236 current IP address gt arp a view Ethernet physical address gt arp d 192 168 123 236 delete arp table gt arp s 192 168 123 237 O0 14 F7 00 00 00 assign static arp table with new IP address l 0QO 14 F7 00 00 00 is Ethernet Address See Adapter Label gt ping n 1 1 741 192 168 123 237 assign new IP address gt arp d clear all arp table gt ping 192 168 123 237 check response of adapter new IP address New IP Address setup IP Address 192 168 123 237 Subnet Mask 255 255 255 0 Gateway 192 168 123 254 To setup the IP address using IO Guide Pro follow these steps e Start IO Guide Pro e Inthe Tools menu select Bootp server e Click the Add New Device button at the bottom e Enter the requested parameters the MAC address is printed on the node module e Click Ok close down the Bootp tool and try to ping the unit e Now you can create a new project in IO Guide Pro using the NA 9189 bus module www beijer se
9. Diagnostics structures created automaticly in BCS Tools e The OTD One Touch Diagnostics function and LED s e Diagnostics via the WWW page in the cpu 8 1 Diagnostic structures When the Modbus TCP driver is inserted a data structure is created automaticly located in a list named Diagnostics This list will be populated with diagnostics structures for all hardware inserted in BCS Tools Edit View Project Build Online Debug Tools Window Help pu F SS A ICA d iela gla m i Start Page E Configuration Bus a Diagnostics 7 Device Application Diagnostics ProgramExample_NX3010_ProfibusDP_Crevis og S E PLCLogic o 3 Bill of Materials Configuration and Consumption Ld Diagnostic Explorer PBDP_IO il Library Manager Expression Type Prepared value Comment A DG_NX3010 T_DIAG_NX3010_1 DG_NX3010 diagnostics variable g DG_Nxs001 T_DIAG_NX5001_1 DG_NX5001 diagnostics variable E DG_Na9122 T_DIAG_SLV_GENERIC_1 DG_NA9122 diagnostics variable a DG_AT2R533 T_DIAG_SLV_GENERIC_1 DG_AT2R533 diagnostics variable File Edit View Project Build Onine Debug Tools Window Help ILAIA LEREZ E SA ELA i E3 LIJ ProgramExample_N amp G010_ModbusTtP Gevis OM S E PLCLogic is B T_DIAG_NX3010_1 E Bill of Materials l a J T_DIAG_MODBUS E Configuration and Consumption J tDiag T_DIAG_MODBUS D HA Diagnostic Explorer i bRunning BOOL a Diagnost
10. SE556701 3965 01 Internet www beijer se e mail info beijer se Kl_eng dot 070221 na Aa WN By BCS Tools Nexto Modbus TCP and Crevis I O KI00350 2013 08 Table of Contents Punchon ANG area OF USC iiss scassesssceca cists onscveusavacsssdendersiscnasteusessccessavacsssdesdetstsecucssusesssveuaeuecessesawcuasensesss 1 PDOUC this Start Up CROC UMMC INL ois caee ve sicin cas cecscavessclvesscccsescsvectsesseusseacevcctvesseacsnsuevectavsseucnsacevectuceveeseseese 1 MADNG OFC OMG TGS coo E ses secsueenssessvdaesuesssesseesuansseeasest 2 MOVE VOW EE T OEA O EE I E E E IA O E E I EN A 3 Conon an I CS T00 E 3 5 1 CT COC ATVI CCI retrace tert reause E E sen guise slospitean E 4 5 2 Configure the IP address of NETI inter face cccccccccccccccseeccscccee ee eeeeeeeeeeeeeseeeeeeaaeeseeesaaaaeseeeeeaaees 5 3 Configure the IP address of NAA91 6 xc csesestieecseicacincatvinnsarienenteoransomei nemesis S 24 PROD II Modbus Cheni CCV ICS srir ee eren voce sinsitcaswe shen waue OE EONO 10 D2 AO TS VIOUS TOF SUVE ceirios rA O EEEE EEE EA EEES Il IO MTT TI ares ates secs E E E nuances Il 5 7 Configure the data mapping of the Modbus TCP SldVe cccccccccccssssseeeeeecceeeceeaeenseeseeeeeaaaaneseeeess 15 5 8 Create variables and connect to the IEC addresses occcccccssecccccccueeeeeeceeeaeeeceeeeaaneseeeesaaeeeseeeeaaaaes I7 Compile and download of the project ccecccoccceceocececccccseesseseeececosoeseseseeesesesseseesesesesesssssssssssssssso 19 Co
11. a VAR_GLOBAL g VAR_GLOBAL a VAR_GLOBAL g VAR_GLOBAL a VAR_GLOBAL g VAR_GLOBAL a VAR_GLOBAL g VAR_GLOBAL a VAR_GLOBAL 2 4 ModbusTcP Jo Library Manager i HF Performance PRG H ExternInterruptPrg00 F E MainPrg PRG TimelnterruptPrg00d PR E Task Configuration ge ExternInterruptTas Gk MainTask g dot 070221 Kl_en www beijer se 19 28 BCS Tools Nexto Modbus TCP and Crevis I O KI00350 2013 08 Compile and download of the project This chapter describes how to compile and download the project 6 1 Compile of the project When the configuration has been completed the project has to be compiled To compile the project click the menu Build Generate code ProgramExample NWA3010_ ProfibusDP_Crevis project BCS Tools File Edit View Project Build Online Debug Tools Window Help BaS K7 Tla Devices Clean PragramEyamp e_ NAT Clean all A H Device NX3010 Once the code generation has been successful it s time to download the project 6 2 Download of the project To download the project the accesspath to the cpu must be configured The access must be made via the built in ethernet port of the cpu The default IP adress of NET1 is 192 168 15 1 a 255 255 255 0 192 168 15 253 In case of using the NX3020 or NX3030 with two ethernet ports NET1 must be used for communication with BCS Tools Double click the device in the project tree to access the communication
12. carefully check all of the download procedures described on Nexto Series CPUs Manual The progress of the download can be found down in the left corner of BCS Tools 4 rir Messages Sending download info Downloading 5 3 of 839 KByte 68 When the download is completed the cpu is in STOP state To set the cpu into RUN state press the run button No reset or power on off is necessary after the download even if parameters has been changed wo Help www beijer se 22 28 BCS Tools Nexto Modbus TCP and Crevis I O The status of the cpu and the Modbus TCP driver can be found in BCS Tools of each slave the diagnostic variables must be used KI00350 2013 08 To see status ProgramExample_NX3010_ModbusT _Crevis i Device connected NX3010 5 H PLcLogic 5 0 3 Bill of Materials Configuration and Consumption Diagnostic Explorer Diagnostc ModbusTCP 10 i Library Manager 2 ModbusTCP_Status PRG E ExterninterruptPrg00 PRG B MainPrg PRG 2 TimelnterruptPrg00 PRG P Task Configuration ExterninterruptTask00 MainTask E TimelInterruptTask00 i i S f Configuration us s S f NX3010 Nx3010 Device Application ModbusTCP_Status Comm_Ok CommeErrorStn3 CommeErrorStn4 DG_ModbusTCP_Communication tDiag bRunning DG_NA9189 1 Mapping 000 byStatus bCommO0k DG_NA9189 2 Mapping _000 byStatus bCommOk geesseoseossesseesesea Check communicationstatus with NA9
13. the Mapping to be added z Lok Cancel Holding Register Add Remove Edit Device Mappings of NA9189_1 Slave Address Read Data Start Address Read Data Size Write Data Start Address Write Data Size Write IEC Variable Current user nobody The next step is to configure how many holding register to read and write and from what address The NA 9189 input area starts at address O and the output area starts at address 2048 The NA 9189 has 0 based addressing which means that the lowest address is 0 while the Nexto system is 1 based which means that the lowest address is 1 This will give us a offset with 1 when addressing a NA 9189 Ecs MASI89 1 Mapping 000 Holding Register Function Read Write Holding Registers FC 23 Slave Address J Polling ms Write Settings Read Data Start Address Read Data Size 1 3 Read IEC Variable 30000 Used range WIW30000 41W 300 Mapping Diagnostics Area 22060 Used range 4OB22060 0 B22067 S 5 r g Www beijer se 15 28 g dot 070221 Kl_en BCS Tools Nexto Modbus TCP and Crevis I O K1I00350 2013 08 Function Read Write Slave address Not used when using NA 9189 use default value Polling Set the desired polling rate Mapping Diagnostics Area This is the IEC adresses that will contain diagnostics about the mapping function refer to Cpu User s manual for more details Read Settings Read D
14. 189 1 Check communicationstatus with NA9189 2 3 J ModbusTcP_Communication MODBUS ient 4 om Check communication status of the Modbus TCP network DG_NA9189 1 Mapping 000 byStatus bCommOk Eui NaA9189 1 Ok DG _NA9189 2 Mapping 000 byStatus bCommOk QBelpy a91e9 2 ok Prepared value Comm_Ok Comment emxa lyu AJBIgI JoNpold D xogjoo E Messages RA Watch 1 Poos Program loaded Program unchanged Current user nobody If a Modbus TCP slave is missing in the network this can be read by the diagnostic variable deag onpold 2 xogjoo 2f SEA EEN il 5 gs m g HE EE E 3 9 gt E E eS Devices 4 X f StartPage f ModbusTCP_Status Configuration Bus x revis a ProgramEampie_NX010_Modhus T Device Application ModbusTCP_Status s o S E PLCLogic Expression Type Prepared value Comment 6 Comm_Ok BOOL Bill of Materials CommErrorStn3 BOOL 5 Configuration and Consumption CommErrorStn4 BOOL a i BiagnosticEpier NA9189_1_0k BOOL a Diagnostics NA9189_2_0k BOOL y ModbusTcP Jo Library Manager 1 Check communication status of the Modbus TCP network F ModbusTCP_Status PRG B ExternInterruptPrg00 PRG B MainPrg PRG DG_ModbusTCP_Communication tDiag bRunning B TimelInterruptPrg00 PRG DG_NA9189 1 Mapping_000 byStatus bCommO0k A Task Configuration DG NA9189
15. 2 Task Configuration Mapping Disabling 4096 Ka Used range QX4096 0 QX4099 7 ok _cancal_ BtterninterruptTask00 E MainTask R2 TimeInterruptTask00 p Configuration Bus J Nx3010 Nx3010 coM1 coM2 S S NET1 MODBUS_Client MODBUS Client Device Mappings of MODBUS_Device Write Data Start 5 eee Write Data Size E Messages Current user nobody 5 6 Data mapping in NA 9189 The NA 9189 module maps all data from to the I O modules mounted to one input and one output area Network Adapter Expansion Modules Slot 1 Input Data Slot 2 Input Data m Network READ Shot 32 Input Data Slot 32 Write Data Network WRITE Slot 32 Output Data www beijer se 11 28 g dot 070221 Kl_en Input data is mapped as both holding register and coils and the same applies for the output data Register Map Start Address u 0x000 42 D000 031000 ox1020 Ox1 100 Read Write Ox2000 Read Write BCS Tools Nexto Modbus TCP and Crevis I O Process input image registers Real Input Register STS ada output image registers Real Output Register Read Adapter Identification special registers Adapter Watchdog other time special register Adapter Information special registers Expansion Slot Information special registers The special register map must be accessed by read write of ever
16. Not occupied QX30060 2 2048 10 Not occupied QX30060 3 2048 11 Not occupied QX30060 4 2048 12 Not occupied X30060 5 2048 13 Not occupied QX30060 6 2048 14 Not occupied y0QX30060 7 2048 15 Not occupied www beijer se 18 28 BCS Tools Nexto Modbus TCP and Crevis I O K1I00350 2013 08 Screenshot of the created varibles connected to the addresses above R rea i TI C TT ole _ fF Tii 10 l od JUS 1 a Y Cre ar project E cs 7 PE 15 File Edit View Project Build Online Debug Tools Window Help Je lis MoD H BK S E Diagnostics ff Configuration Bus MainPrg V ModbusTCP_ Communication i ModbusTCP_IO Eee ProgramExample_NAS010_Modbus Ei J Device Nx3010 S E PLC Logic o Application Bill of Materials Name NA9189 1 ST3702_CHi NA9189_1 5T3702_CH2 NA9189 1 ST1218 DIL NA9189_ 1 571218 _DI2 NA9189 1 5T1218 DI3 NA9189_1 571218 _DI4 NA9189 1 ST1218 DI5 NA9189_1 571218_DI6 NA9189 1 511218 DI7 NA9189_1 571218_DI6 NA9189 1 512744 _DO1 NA9189_1 5T2744_D02 NA9189_ 1 512744 _DO3 NA9189_1 57T2744_D04 Address Datatype Initialization Commen SoTW30000 INT olWws0002 INT Vo IX3 0004 8 BOOL oDX3 0004 9 BOOL oIX3 0004 10 BOOL oDX3 0004 11 BOOL So IX3 0004 12 BOOL oDX30004 13 BOOL Vo IX3 0004 14 BOOL oDX30004 15 BOOL oQXS0020 8 BOOL oQX350020 9 BOOL oQXS0020 10 BOOL oQXS0020 11 BOOL g VAR_GLOBAL a VAR_GLOBAL g VAR_GLOBAL a VAR_GLOBAL fa VAR_GLOBAL
17. _2_Mapping_000 byStatus bCommOk fig E ExternInterruptTask00 E MainTask p Check communicationstatus with NA9189 1 amp TimelnterruptTask00 J Configuration Bus 2 6 i a Caa DG _NA9189 1 Mapping 000 byStatus bCommOk Eni N29189_1_0k 2 G com2 NETI Check communicationstatus with NA9189 2 3 J ModbusTCP_Communication MODBUS DG _NA9189 2 Mapping 000 byStatus bCommOk ESE NA9189 2 Ok ae m Pj m Messages ee Program loaded Program unchanged Current user nobody y N O N O O D a 2 an Wwww beijer se 23 28 BCS Tools Nexto Modbus TCP and Crevis I O K1I00350 2013 08 7 Communication interlock signal For every module mounted in the Nexto system BCS Tools creates diagnostic structures These structures contains detailed information of the cpu communication module Profibus DP slave etc For more details about these structures refer to the User s manual of the specific module or the CPU User s manual ees ProgramExample_NX30 10 lodbusTC et evis project BCS Tools E File Edit View Project Build Online Debug Tools Window Help 3 j AS F 4 SEA NER Mo 4 EE a Devices TEEN 2 ModbusTCP_Status EN Configuration Bus m Diagnostics E OH EE 3 Devi pplication Diag Q PLC Logic Expression Type Value Prepared value Comment Roose aT NNN ocon T pme OER ae eea a Bill of Materials DG_ModbusTCP_Communication T_DIAG_MODBUS E DG_ModbusTCP_Communication diag
18. and the wizard will create the following objects within the project Common Task Programs Preempt Free Tasks Program assocdated with Main Task MainPrg in Structured Text ST BCS Tools Standard Project www beijer se Choose the language and the wizard will create the following objects within the project Interrupt Task Programs Preempt Common and Free Tasks Programs assocdated with External Interrupt Tasks ExterninterruptPrg00 in Structured Text ST Programs associated with Time Interrupt Tasks TimeInterruptPrgQ0 in Structured Text ST KI00350 2013 08 6 28 BCS Tools Nexto Modbus TCP and Crevis I O KI00350 2013 08 5 2 Configure the IP address of NET1 interface When the wizard is completed the following view appears this is where the hardware configuration of the system is made In this start up we will use the following IP adresses NX3010 10 101 221 52 NA9189_1 10 101 221 53 NA9189_2 10 101 221 54 al p File Edit View Project Build Online Debug Tools Window Help BAMen oe A aa 2 ER 1S gt all ls gt StartPage if Configuration Bus x Product Library ax 5 ProfituspP v po Fieldbus Interfaces il Device NX3010 5 H PLcLogic 5 6 Application Bill of Materials Configuration and Consumption Diagnostic Explorer NX5001 Diagnostics PROFIBUS DP Master il Library Manager B ExternInterruptPrg00 PRG B MainPrg PRG Time
19. ata Start Address Starting address to read from NA 9189 because of the address offset address 1 will be address 0 in NA 9189 Read Data Size Number of Holding registers to read Read IEC Variable The IEC address to map the read Holding registers E NAS1S9 1 Mapping_000 Holding Register Function Gead Settings Write Settings Read Write O oT Write Data Stat Address Write Data Size Read Write Holding Registers FC 23 2049 a 7 5 Used range 2049 2049 Slave Address Write IEC Variable 1 30020 Polling ms Used range OW S0040 20W30020 5D Mapping Diagnostics Area 22060 Used range 40B22060 40B22067 Write Settings Write Data Start Address Starting address to write in NA 9189 because of the address offset address 2049 will be address 2048 in NA 9189 Write Data Size Number of Holding registers to write Write IEC Variable The IEC address to map the written Holding registers Repeat the mapping for the other NA 9189 The IEC addresses used for the other NA 9189 1S Read IEC Variable 30040 Write IEC Variable 30060 The first NA 9189 only occupies from from 30000 30004 and 3020 3020 by creating some space between the addresses future expansion will be easier The mapping is now complete www beijer se 16 28 BCS Tools Nexto Modbus TCP and Crevis I O KI00350 2013 08 5 8 Create variables and connect to the IEC address
20. er se 14 28 BCS Tools Nexto Modbus TCP and Crevis I O KI00350 2013 08 5 7 Configure the data mapping of the Modbus TCP slave Click the Add button to configure how to access the NA 9189 The most efficient way is to use the Modbus function Read Write Holding register therefore Holding register is chosen Click OK to verify the setting Bcs ProgramExample_NX3010_ModbusTCP_Crevis project BCS Tools File Edit View Project Build Online Debug Tools CA IEI d t Devices E ProgramExample_NX3010_ModbusT _Cevis ff Device NX3010 PLCLogic Application a Bill of Materials B Configuration and Consumption g Diagnostic Explorer Diagnostic modbusTcP Jo i Library Manager HF Performance PRG B ExternInterruptPrg00 PRG B MainPrg PRG 2 TimelnterruptPrg00 PRG pe Task Configuration R2 ExternInterruptTask00 mainTask E TimeInterruptTask00 Configuration Bus J NX3010 NX3010 comi coMm2 3 NET1 J MODBUS_Client MODBUS Client o e s Window Help ta OT OF q S Diagnostics Configuration Bus f MODBUS_Client x 3 MODBUS Client Configuration S Client Settings F Q Start Address of Diagnostics Area es g 22040 ee RTU via TCP Size El Me ssages 120 TCP Used range QB22040 QB22059 Devices Destination IP 10 101 221 53 Instance Name 0 NA9189_1 1 NA9189_2 Add Mapping Please select Data Type of
21. es To get the Modbus data in user variables the variable needs to be connected to the IEC address In this example a new GVL is created named ModbusTCP_IO The relation between the Modbus adress in the NA 9189 to the user variable is according the following table This is the relation for the NA 9189_ 1 NA 9189 1 Modbus Holding register EC address inputdata address input data olVW30000 0 All ST 3702 YolVWS0002 1 Al ST 3 702 VolAI0004_6 2 0 DN ST 1216 VolAIO004 9 2 1 DIZ ST 1218 YolXIO004_ 10 22 DIS ST 1215 YolASOO04 17 2 3 Dl4 ST 1216 VolAIOO04_ 12 24 DIS ST 1216 VolAIOO04 13 25 Dib ST 1216 olXI0004_ 14 2 6 DIY ST 1216 Vol ASO004 15 2T D6 ST 12168 VolAIO004_0 2 0 Not occupied VolLAIOO04 1 24 Not occupied VolIASOO04 2 2 10 Not occupied VolAIOO04 3 2 11 Not occupied VolAIO004 4 2 12 Not occupied VolAIOOOA 5 2 13 Not occupied VolASO004 6 2 14 Not occupied VolAIO004 7 2 15 Not occupied NA 9169 1 Modbus Holding register 21 IEC address output data address output data QA30020_6 046 0 DO1 ST 2744 oQAI0020 9 046 1 DO ST 2744 YoQASI002Z0 10 046 2 DO3 ST 2744 YoQAI0020 17 043 3 DO4 ST 2 744 g dot 070221 Kl_en w0X30020 12 wQX30020 13 wQX30020 14 w0QX30020 15 048 4 Occupied by ST 2744 048 5 Occupied by ST 2744 048 6 Occupied by ST 2744 048 7 Occupied by ST 2744 watajaa jea jejejejejeje ho pa a a le isleis eggs selaar WAX30020 0 046 6 N
22. he diagnostics variables DG_NA9189_1_Mapping_000 bCommOk is a variable indicating that the communication with the slave NA9189_1 is running with no errors Device Application Diagnostics Expression Type Value g DG_nx3010 T_DIAG_NX3010_1 E a DBG_ModbusTCP_Communication T DIAG MODBUS E g DG_NA9i89_1_Mapping_000 T DIAG MODBUS E byStatus T DIAG MODBUS E bCommidle BOOL bCommeExecuting BOOL FALSE bCommPostponed BOOL FALSE bCommDisabled BOOL FALSE bCommOk bCommeError BOOL FALSE bCommAborted BOOL FALSE a he i m en mem orm ALC The diagnostics variables DG_NA9189_2_Mapping_000 bCommOk is a variable indicating that the communication with the slave NA9189_2 is running with no errors me Device Application Diagnostics Expression Type Value g OG_Nx3010 T_DIAG_NXx3010_1 ad DG_ModbusTCP_Communication T_DIAG_MODBUS_E i 0G_NA9189_1_Mapping_000 T_DIAG_MODBUS E g 0G_NA9189_2 Mapping_000 T_DIAG_MODBUS_E byStatus T_DIAG_MODBUS E bCommidle BOOL FALSE bCommExecuting BOOL bCommPostponed BOOL FALSE bCommDisabled BOOL FALSE bCommeError BOOL FALSE h omm hortad TaT aT EALEF www beijer se 26 28 BCS Tools Nexto Modbus TCP and Crevis I O KI00350 2013 08 The following is an example when more data is accessed then available in NA9189_2 The diagnostics variables DG_NA9189_2 Mapping _000 bCommError is TRUE the DG_NA9189_2_ Mapping_O000 eLastE
23. ics bNotRunning BOOL O p ModbusTCP 10 bInterruptedByCommand BOOL ABD Library Manager bConfigFailure BOOL peas E ModbusTCP_Status PRG G bRXFailure BOOL EH ExternInterruptPrg00 PRG i bTxFailure BOOL s MainPra PRG bModuleFailure BOOL E TimelnterruptPrg00 PRG bDiag_7_reserved BOOL a Task Configuration byDiag_1_reserwed BYTE BxternInterruptTaski0 tCommand T_DIAG_MODBUS_C w g MainTask byDiag_3_reserved BYTE i 2 TimeinterruptTaski0 tStat T_DIAG_MODBUS_E A AA conficurati i DG_NA9189 1 Mapping 000 T DIAG MODBUS E rs Configuration Bus s N 3010 NX3010 ab DG _NA 189 2 Mapping_000 T_DIAG MODBUS E 4 com1 SR coma 43 NET i A i ModbusTCP_Communication MODBUS g dot 070221 Kl_en www beijer se 25 28 BCS Tools Nexto Modbus TCP and Crevis I O KI00350 2013 08 The diagnostics variables DG_ModbusTCP_Communication bRunning is a variable indicating that the ModbusTCP driver is running with no errors E _ModbusTcP Status _ iff Configuration Gus Q Diagnostics Device Application Diagnostics Expression Type Value g DG_Nxs010 T_DIAG_NX3010_1 a DG_ModbusTCP_Communication T DIAG MODBUS E amp tDiag T_DIAG MODBUS D bRunning bNotRunning BOOL FALSE biInterruptedByCommand BOOL FALSE bConfigFailure BOOL FALSE bRXFailure BOOL FALSE bTXFailure BOOL bModuleFailure BOOL ALSE bDiag 7 reserved BOOL FALSE T
24. lInterruptPrg00 PRG B Task Configuration ExterninterruptTask00 E MainTask amp TimelnterruptTask00 Configuration Gus J Nx3010 Nx3010 gt a com1 com2 S NETI z E Messages pa Current user nobody Double click the NET1 icon in the project tree and enter the IP details of the NX3010 Scs Prog pro pce GF ea File Edit View Project Build Online Debug Tools Window Help SEA EEIE a xid taol y all E g JE Configuration Bus ff NET 1 x 3 S ProgramExample_NX3010_ModbusT _Gevist E Device NX3010 Ethernet Port Parameters k B BY pees Ethernet Port Parameters i Application BA IP Address 10 101 221 52 Configuration and Consumption Subnetwork Mask 255 255 252 0 z Diagnostic Explorer 1 Gateway Address 10 101 223 254 Diagnostcs ModbusTcP 10 3 i Library Manager HF Performance PRG B ExternInterruptPrg00 PRG B MainPrg PRG 2 TimeinterruptPrg00 PRG B Task Configuration RA ExternInterruptTask00 MainTask RA TimelnterruptTask00 g Configuration Bus NX3010 NX3010 comi LUNI E Messages Current user nobody x S 5 2 on z Wwww beijer se 7 28 g dot 070221 Kl en BCS Tools Nexto Modbus TCP and Crevis I O K100350 2013 08 5 3 Configure the IP address of NA 9189 Factory settings IP address 192 168 123 1 Subnet mask 255 255 255 0
25. mpile and download of the project ccccccssssssssscccececcccoocccssosssesssceccececeocssossssssssssssececosssssssssssse 20 6 1 COIS OF GC PIO aaa eonsce ce E ence Saco ats asians ona aae eden nda eaauoaenaees 20 02 Downioadof Mhe VO CCL seinir np sats specie trast come ai iE iS opisi nii 20 Communication interlock signal sisssedessecesnsscestwsesessectoscscassorersessosecsbuseversessovesduowoesseeassestessasasdecsnsestens 24 7 1 Example of how to create a communication interlock SIGNAL ccccsccccccccesseeccccecceaeesseeseaaeesseeeeeas 24 Troun OOS oE E E E EEE 25 8 1 PTOS E ST U T E vi a E E A EE E E T AE E E AEA E O 25 8 2 OI Dand LED TIOMAN ON ows ietacenteecaetnsspsanermeneoechsicnsaaeticeseiebatinds gunten asuonigdupemniadatshatrasamtanasunnesne 28 6 3 Diagnostics using the Diagnostic Explorer in BCS Tools ccccccccsseccccccseneeccceceeaeesseeesaaaneseeseeas 28 S 4 Diagnostics USING the WED DLOWSETD uu secccccccsvecccceeceeeeeeee eens eeeeeee eee eeeee cece Gane e eee cc aaa EEeEesc aaa ESEEEEES 28 www beijer se 2 28 g dot 070221 Kl_en BCS Tools Nexto Modbus TCP and Crevis I O KI00350 2013 08 4 Overview This is the basic configuration The communication between the NX3010 and the NA 9189 uses the built in ethernet port of the NX3010 Ethernet switch Bejier Electronics JetNet 2005 5 Configuration in BCS Tools BCS TOOLS Advanced a RT 1 31 The IEC programming and supervision software Licensed t
26. nostics v Configuration and Consumption t DG_NA9189_1_Mapping_000 T_DIAG_MODBUS _E DG_NAS189_1 Mapping_000 diagnostics vari WA Diagnostic Explorer m DG_NA9189_2_Mapping_000 T_DIAG_MODBUS_E DG_NA9189_2_Mapping_000 diagnostics vari Diagnostic ModbusTcP 10 Vil Library Manager H ModbusTCP_Status PRG 7 1 Example of how to create a communication interlock signal This is an example of how we can create a Comm_OK signal When any of the configured slaves stops responding to the master this flag will be set to FALSE There is also flags available for independent communication control of each slave _ i ModbusTCP_Status Configuration Bus Expression Prepared value Comm_Ok CommeErrorStn3 CommeErrorstn4 NA9189 1 Ok Device Application ModbusTCP_Status NWAQ189 2 Ok Check communication status of the Modbus TCP network DG_ModbusTCP_ Communication tDiag bRunning Iss DG_NAS9159 1 Mapping 000 byS5tatus bCommOk Reus DG NA9189 2 Mapping O00 by5tatus bCommOk fii Check communicationstatus with NA9129 1 DG NA9189 1 Mapping 000 byStatus bComm0k BEA 09189 1 Ok Check communicationstatus with NA9189 2 DG NA9189 2 Mapping 000 byStatus bCommOk EFi NA9189 2 Ok www beijer se 24 28 BCS Tools Nexto Modbus TCP and Crevis I O KI00350 2013 08 8 Troubleshooting To troubleshoot and get diagnostics from the Nexto system there are several possibilities available e
27. o Beijer Electronics Auton License version 1 25 Serial number 041212 License time 93 days Loading Breakpoints 1 E F BeiJer ELECTRONICS www beijer se 3 28 g dot 070221 Kl_en BCS Tools Nexto Modbus TCP and Crevis I O 5 1 Create a new project Create a new project from the File menu Edit View Project Build Open Project Close Project Save Project Ctrl4 s Save Project As KI00350 2013 08 Choose the path of where the project should be created and the standard template Ga ESE Creates a new project automatically incduding the corresponding CPU and selected POUs and Tasks Name Untited1 Location C Users NSM Documents BCS Choose the cpu rack and power supply model BCS Tools Standard Project You are about to create a new BCS Tools Standard Project Choose the following options and the wizard will create project as you decide Choose the CPU model NX3010 Beijer Electronics CPU 1 Eth 2 Serial Memory Card and Rack Expansion Choose the rack model Nx9002 Beijer Electronics 16 Slot Backplane Rack Choose the power supply model NX8000 Beijer Electronics 30 W 24 Vde Power Supply Module Choose the redundancy configuration Without Redundancy www beijer se 4 28 g dot 070221 Kl en www beijer se BCS Tools Nexto Modbus TCP and Crevis I O K1I00350 2013 08 Choose the project profile in this case the basic is being used
28. ot occupied YQAI0020 1 2048 9 Not occupied wQX30020 2 2046 10 Not occupied w0QX30020 3 2046 11 Not occupied oQXI0020 4 2045 12 Not occupied oQAI0020 5 2046 13 Not occupied oQX30020 6 2046 14 Not occupied WAX30020 7 2046 15 Not occupied www beijer se 17 28 g dot 070221 Kl_en BCS Tools Nexto Modbus TCP and Crevis I O KI00350 2013 08 This is the relation for NA9189_ 2 re ay ees es ee ee a NA 9189 2 Modbus Holding register 39 IEC address input data address input data lVW30040 0 Al1 ST 3702 IVW30042 1 Al2 ST 3702 IX30044 8 2 0 DI1 ST 1218 IX30044 9 24 DI2 ST 1218 IX30044 10 22 DI3 ST 1218 AG IX30044 11 23 Di4 ST 1218 IX30044 12 24 DIS ST 1218 IX30044 13 25 DI6 ST 1218 IX30044 14 26 DI7 ST 1218 IX30044 15 27 DIS ST 1218 IX30044 0 28 gt Not occupied IX30044 1 29 Not occupied IX30044 2 2 10 Not occupied IX30044 3 2 11 Not occupied IX30044 4 2 12 Not occupied 56 IX30044 5 2 13 Not occupied IX30044 6 2 144 Not occupied IX30044 7 2 15 Not occupied m NA 9189_2 Modbus Holding register 60 IEC address output data address output data 61 Qx30060 8 2048 0 DO1 ST 2744 G2 QX30060 9 2048 1 DO ST 2744 QX30060 10 2048 2 DO3 ST 2744 QX30060 11 2048 3 DO4 ST 2744 QX30060 12 2048 4 Occupied by ST 2744 66 QX30060 13 2048 5 Occupied by ST 2744 QX30060 14 2048 6 Occupied by ST 2744 QX30060 15 2048 7 Occupied by ST 2744 69 QX30060 0 2048 8 Not occupied QX30060 1 2048 9
29. rrorCode is reporting ERR_EXCEPTION and the DG_NA9189_2_ Mapping _000 eLastExceptionCode is reporting MAPPING_NOT_FOUND When the error is present the DG_NA9189_2_Mapping_000 wCommErrorCounter will increment for every telegram sent to the slave ModbusTCP_Status f Configuration Gus Diagnostics Device Application Diagnostics Expression Type Value g 0G_nyxz010 T_DIAG_NX3010_1 a DG_ModbusTCP_Communication TDIAG MODBUS E 0G_NA9189_1 Mapping_000 T DIAG MODBUS E DG_NA9189_2_Mapping_000 T_DIAG_MODBUS E byStatus T_DIAG MODBUS E bCommidle BOOL bCommeExecuting BOOL bCommPostponed BOOL bCommDisabled BOOL bComm k E meError b bCommAbortec bDiag_ _ reserved eLastErrorCode eLastExceptionCode MASTER_ERROR_CO MODBUS_ EXCEPTION ERR_EXCEPTION MAPPING NOT_FOUND S byDiag_3 reserved wCommcCounter WORD 17730 wCommeErrorCounter For more information about the structures refer to the User s manual of the cpu www beijer se 27 28 BCS Tools Nexto Modbus TCP and Crevis I O KI00350 2013 08 8 2 OTD and LED information Note When using the Modbus TCP driver the diagnostics is only available via the Diagnostic structures 8 3 Diagnostics using the Diagnostic Explorer in BCS Tools Note When using the Modbus TCP driver the diagnostics is only available via the Diagnos
30. settings ProgramExample_NX3010_ProfibusDP_Crevis project BCS Tools File Edit View Project Build Online Debug Tools Window Help B A NE paxa Devices 4x Configuration Bus J Device Xx _ProgramExample_NX3010_ProfibusDP_Crevis PLCLogic Application L Bill of Materials T mme m Diagnostc i ce wi Add device Ki Library Manager E ExternInterruptPrg00 PRG H PBDP_Status PRG Scan network 2 MainPrg PRG 2 TimelnterruptPrg00 PRG ZH Task Configuration E ExternInterruptTask00 amp MainTask Sorting order TimelnterruptTask00 i Configuration Bus J NX3010 Nx3010 Communication Settings Files Log Users and Groups Access Rights Information Select the network path to the controller Gateway 1 v P Gateway 1 www beijer se 20 28 g dot 070221 Kl_en BCS Tools Nexto Modbus TCP and Crevis I O KI00350 2013 08 Choose the Scan Network option or add the device manually by clicking the Add device button Add device Device Enter name node address or IP address 10 101 221 52 Enter either a device name node address or an IP address The dialog will automatically try to identify the correct mechanism to find or add the device to the list Example for a node address 0104 02F4 Example for an IP address 192 168 101 15 If the cpu is found on the network it will be shown in the list
31. tic structures ProgramExample_Digital_10 project BCS Tools File Edit View Project Build Online Debug Tools Window Help ba amp d 25 l a g A Eil Configuration Bus BS NX2020 HF Test_IO E MainPrg a Diagnostics a Diagnostic Explorer Source Current Active Device 10 101 221 52 System Overview Updsted on 3rd April 2013 12 03 23 To refresh this page click on the icon Diagnoste Digitalo i Library Manager HF Test_IO PRG 2 ExternInterruptPrg00 PRG E MainPrg PRG Diagnostics Status Diagnostic list gt gt Rack 0 2 TimelnterruptPra00 PRG Task Configuration ExternInterruptTask00 lt MainTask TimeInterruptTask00 og Configuration Bus lt gt J NX3010 NX3010 com1 G com2 G NETI I el eee eee Ts IA ao 4 cs Ha i a EA NX8000 8 4 Diagnostics using the web browser Note When using the Modbus TCP driver the diagnostics is only available via the Diagnostic structures yg 4 bttp 10 101 221 52 B iJ English Espa ol Portugu s ELECTRONICS CPU Overview System Overview Fimware Update CPU Overview Updated on 22th March 2013 22 49 45 To refresh this page click on the icon NX3010 T NX3010 o ec Description se Configured Racks Firmware Version Bootloader Version Auxiliar Processor Version a J Application State Active Diagnostics e Forced Values E g dot 0
32. y each address one address Read Write Process input image bits All input registers area 1s addressable by bit address Size of input image bit 1s size of input image register 16 Process output image bits All output registers area is addressable by bit address Size of output image bit is size of output image register 16 The two NA 9189 used in this example are equipped with the following modules NA 9189 ST 3702 ST 1218 ST 2744 ST 3702 2 RTD inputs ST 1218 8 DI ST 2744 4 DO The address mapping can be checked by using IO Guide Pro from the View menu and select the View address map option ETAR T F 4 a 4 ETE eT meme irm 4 a jEr oe ee ee oe Pe aire ier peas ee aes ares www beijer se KI00350 2013 08 12 28 g dot 070221 Kl_en BCS Tools Nexto Modbus TCP and Crevis I O KI00350 2013 08 Input Mode 2 Uncompressed Input Processing Data without Status Output Mode 0 Uncompressed Output Processing Data fil 00 NA 9189 gay 01 ST 3702 gig 02 ST 1218 gm 03 ST 2744 Address value will be changed depending on project value Another way to check the mapping is to use a web browser and connect to the NA 9189 rr ye S http 10 101 221 53 P BOX GS rio Na 9189 Modbus TC x FnlO S Series The Creative present makes Vision of future CREVIS www crevis co kr Network Adapter FniO NA 9189 Modbus TCP Network Adapter Input Register Data
Download Pdf Manuals
Related Search
Related Contents
Colaborar com todos HP330D - Makita Star Micronics CBM-820 Printer User Manual CAPTEUR DE VITESSE MD-256 P/N 2008 Fork Service Manual 226209, 226308, 226315, 225322 miesiarki spiralne Weed Eater 530163505 Instruction Manual Copyright © All rights reserved.
Failed to retrieve file