Beijer Electronics NA-9379 Installation manual

Copyright © Beijer Electronics, 2014
This documentation (below referred to as ‘the material’) is the property of Beijer Electronics. The holder or
user has a non-exclusive right to use the material.
The holder is not allowed to distribute the material to anyone outside his/her organization except in cases
where the material is part of a system that is supplied by the holder to his/her customer.
The material may only be used with products or software supplied by Beijer Electronics.
Beijer Electronics assumes no responsibility for any defects in the material, or for any consequences that
might arise from the use of the material.
It is the responsibility of the holder to ensure that any systems, for whatever applications, which is based on
or includes the material (whether in its entirety or in parts), meets the expected properties or functional re-
quirements.
Beijer Electronics has no obligation to supply the holder with updated versions.
Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
1Function and area of use
The Programmable I/O (PIO) combines CODESYS control with the opportunity to build control sys-
tems to the exact size and specifications for the I/O signals involved.
In this document “PIO” are used for “Programmable I/O” (NA-9379).
2About 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.
Use the following software and drivers in order to obtain a stable application:
Programming software
•CODESYS V3.5 SP3 Patch 1 or later , programming the PIO
•Compiler version 3.5.3.10 (CODESYS V3.5 SP3 Patch 1)
•IOGuidePro 1.1.0.8 #0004 or later
Device description, Crevis PIO NA-9379
•PIO_DeviceDescription 20140416.devdesc(.xml) or later, enable PIO in CODESYS
Library manager, CODESYS
•Standard 3.5.2.0 (System)
•IoStandard 3.5.3.0 (System)
•Time and Date 3.5.1.0
•Ethernet 3.4.2.0
•Modbus Master TCP 3.5.3.0 (IoDrvModbusTCP)
•Modbus Slave TCP 3.5.3.0 (IoDrvModbusTCPSlave)
1 (35)
Beijer Electronics Automation AB −a Beijer Electronics Group company
Head Office Subsidiaries
Beijer Electronics Automation AB Norway, Drammen: Beijer Electronics AS, +47 32 24 30 00
P.O. Box 426, Stora Varvsgatan 13a Finland, Vantaa: Beijer Electronics Oy, +358 207 46 35 00
SE-201 24 Malmö, SWEDEN Denmark, Roskilde: Beijer Electronics A/S, +45 75 76 66
Telephone +46 40 35 86 00 Estonia, Tallinn: Beijer Electronics Eesti Oü, +372 6 518140
Fax +46 40 93 23 01 Latvia, Riga: Beijer Electronics SIA, +371 6 7842280
Lithuania, Kaunas: Beijer Electronics UAB, +370 5 2323101
KI_eng_130531.dot, 130103

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
In this document we have used following hardware and software
•PIO (NA-9379), ST-3424, ST-4422, ST-1218, ST-2328, ST-3702
•CODESYS V3.5 SP3 Patch 1
•IO Guide Pro 1.1.0.8 #4
For further information we refer to
•CODESYS, Manuals and help in the software
•NA-9379 Manual www.beijer.se
-NA-9379, User Manual
-NA-9379, Specification Preliminary
-NA-9379, Quick Guide
•Crevis Manual www.beijer.se
-FnIO Configuration Parameter/Memory/Register
-Crevis FnIO S-Series All manuals
•Start Up document “Programmable I/O (PIO) NA-9379, Communication”, KI00342
Start Up document “iX TxA/TxB - Programmable I/O (PIO) NA-9379”, KI00343
This document and other Start Up documents can be obtained from our homepage.
3First step!
For best understanding and easy working with Programmable I/ O and CODESYS we recommend:
- Basic knowledge of CODESYS. There is a quick start in CODESYS help file.
- Prepare the computer with the programming tools CODESYS and IOGuidePro.
- Download manuals
Note!
- Always use the correct version of the drivers and software!
- When using BootP in IOGuidePro: use Windows XP (windows 7, 64 bit are not supported).
In order to obtain the correct functionality of the Programmable IO, always start installing the
required CODESYS V3.5 SP3 Patch 1.
This is done to get all libraries and driver versions required of the product.
www.beijer.se 2 (35)
KI_eng_130531.dot, 070221

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
4Table of Contents
1Function and area of use ..................................................................................................................................................1
2About this Start Up document ......................................................................................................................................... 1
3First step! ...........................................................................................................................................................................2
4Table of Contents ..............................................................................................................................................................3
5Specification ......................................................................................................................................................................4
5.1 Interface, PIO (NA-9379) ........................................................................................................................................4
5.2 LED Indicator..........................................................................................................................................................5
6Setup IP address in PIO ...................................................................................................................................................7
6.1 IP setting (default) ...................................................................................................................................................7
6.2 Set the IP with BootP server ....................................................................................................................................7
7Configuration of CODESYS ............................................................................................................................................9
7.1 Add PIO (NA-9379) to CODESYS...........................................................................................................................9
8Configuration of PIO in CODESYS.............................................................................................................................. 11
8.1 Programming and configuration ........................................................................................................................... 11
8.2 How to add a POU ................................................................................................................................................12
8.3 How to add a Task.................................................................................................................................................13
8.4 How to add a POU to a Task................................................................................................................................. 13
8.5 PLC setting ............................................................................................................................................................14
8.6 Select I/O module...................................................................................................................................................15
8.7 Setting Device Parameter and I/O Mapping .........................................................................................................16
9Program example ............................................................................................................................................................17
9.1 New project............................................................................................................................................................17
9.2 Add Global Variable and Persistent Variables .....................................................................................................17
9.3 I/O Mapping ..........................................................................................................................................................19
9.4 Write program in “PLC_PRG ............................................................................................................................... 20
9.5 Transfer CODESYS project to PIO .......................................................................................................................21
9.6 Monitor ..................................................................................................................................................................23
10 Project backup ................................................................................................................................................................ 24
10.1 CODESYS, Create backup files .............................................................................................................................24
10.2 CODESYS, Project Archive ...................................................................................................................................24
11 Persistent variables (32 kbyte) ....................................................................................................................................... 25
12 Appendix..........................................................................................................................................................................26
12.1 Environment specification ..................................................................................................................................... 26
12.2 Interface Specification ...........................................................................................................................................27
12.3 Wiring diagram, PIO............................................................................................................................................. 29
12.4 Dimension ..............................................................................................................................................................31
12.5 Expansion ..............................................................................................................................................................31
12.6 Inserting and Removing the Module......................................................................................................................31
12.7 Removable Terminal Block (RTB) ......................................................................................................................... 32
12.8 Method of Wiring...................................................................................................................................................32
12.9 Program Memory ..................................................................................................................................................32
12.10 Boot application ....................................................................................................................................................32
12.11 Check Compiler, PIO and Library version............................................................................................................33
12.12 Trouble Shooting ...................................................................................................................................................34
www.beijer.se 3 (35)
KI_eng_130531.dot, 070221

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
5Specification
5.1 Interface, PIO (NA-9379)
(1) 2 Ports RJ-45 for Ethernet
PIO has a built-in 10/100Mbps Ethernet Port and switch hub (internally).
Caution!
Do not use two ports connected to the same hub.
(2) RS232 or RS485
- F/W update or Repair.
- Modbus RTU Slave Protocol acts by each two independent ports.
(3) RUN/STOP Switch
RUN : PLC program is running. Monitoring the program and protocol in the CODESYS.
STOP : PLC program is stopped.
(4) Reset Switch
PLC program is initialized, its role is same as the “Reset Cold” in the CODESYS, but
login and other communications should be reconnected.
Caution!
Do not turn on the power while pushing the reset switch.
www.beijer.se 4 (35)
KI_eng_130531.dot, 070221

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
5.2 LED Indicator
LED Status when the module is operating normally
•Green ON : MOD, RUN, IO
•Yellow flashing and Green ON : LAN Port LED
5.2.1 MOD (Module Status LED)
Status LED is To indicate
Not Powered
OFF
Not power is supplied to the unit.
Normal, Operational
Green
The unit is operating in normal condition.
Device in Standby
Blinking Green
The EEPROM parameter is not initialized yet.
Serial Number is zero value (0x00000000)
IAP Mode
Flashing Green
IAP Mode : Available for firmware download using Firefox.
Minor Fault
Blinking Red
The unit has occurred recoverable fault in self-testing.
- EEPROM checksum fault.
Unrecoverable Fault
Red
The unit has occurred unrecoverable fault in self-testing.
- Firmware fault
5.2.2 NET (Network Status LED)
Status
LED is
To indicate
Not Used
-
-
5.2.3 RUN (PLC Run/Stop Status LED)
Status
LED is
To indicate
Not programmed
OFF
No power is supplied to the unit or Not programmed
Run
ON
PLC Run
Stop
Blinking Green
PLC Stop
Error
Blinking Red
Failure of Module Configuration
LED No.
LED Function / Description
LED Color
MOD
Module Status
Green/Red
NET
Not used
-
RUN
Error Status
Green/Red
I/O
Expansion Module Status
Green/Red
Field Power
Field Power Enable
Green
www.beijer.se 5 (35)
KI_eng_130531.dot, 070221

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
5.2.4 I/O LED (Extension Module Status LED)
Status
LED is
To indicate
Not Powered
No Expansion Module
OFF Device has no expansion module or may not be powered
On-line,
Do not Exchanging I/O
Flashing
Green
FnBus is normal but does not exchanging I/O data.
(Passed the expansion module configuration)
Connection,
Run Exchanging I/O
Green Exchanging I/O data
Connection Fault during
exchanging I/O
Red One or more expansion module occurred in fault state.
•Changed expansion module configuration
•Expansions module failure
Expansion
Configuration Failed
Flashing
Red
Failed to initialize expansion module
•Detect invalid expansion module ID
•Overflowed Input/Output size
•Too many expansion modules
•Initial protocol failure
•
Mismatch vendor code between adapter and expansion module
5.2.5 Field Power LED (Field Power Status LED)
Status
LED is
To indicate
Not supplied field power OFF Not supplied 24Vdc field power, 5Vdc system power.
Supplied field power
Green
Supplied 24Vdc field power, 5Vdc system power.
5.2.6 Indicator states and flash rates
LED ON
Constantly ON
LED OFF
Constantly OFF
LED flickering Equal ON and OFF times with a frequency of approximately 10 Hz:
ON for approximately 50ms and OFF for approximately 50ms.
LED blinking Equal ON and OFF times with a frequency of approximately 2,5Hz:
ON for approximately 200ms followed by OFF for approximately 200ms.
LED single flash One short flash (approximately 200ms) followed by a long OFF phase
(approximately 1000ms)
LED double flash A sequence of two short flashes (approximately 200ms), separated by an OFF phase
(approximately 200ms).
The sequence is finished by a long OFF phase (approximately 1000ms).
LED triple flash A sequence of three short flashes (approximately 200ms), separated by an OFF phase
(approximately 200ms).
The sequence is finished by a long OFF phase (approximately 1000ms).
www.beijer.se 6 (35)
KI_eng_130531.dot, 070221

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
6Setup IP address in PIO
The IP address can be set with Bootp or DHCP server.
Default value are BootP.
6.1 IP setting (default)
6.2 Set the IP with BootP server
•Install IOGuidePro (in Windows XP)
•Run IOGuidePro and start BootP server from meny “Tools”
•Click “Start Bootp” and Power ON to PIO and the MAC address is shown five times
Default IP
192.168.100.100
Subnet
255.255.0.0
Gateway
192.168.0.1
Update F/W
192.168.100.10
www.beijer.se 7 (35)
KI_eng_130531.dot, 070221

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
•The new IP-adress must be set within this time “one minute”
- Click on “Add New Device”
- Set IP address, Subnet Mask and gateway
- Restart the PIO
- When the MAC address is shown, click on ”OK”
Note!
If you “Add New Device” after “one minute” you have to
power OFF/ON. Then the PIO take the new setting.
Note!
Changing the IP can be made in a different way, such as:
- Click on “Start BootP”, Power on the PIO and Double click
at the MAC address.
- Write the new IP address and click on OK.
•Check IP address with the “Ping”
Note!
IP address can also be checked via the port for Modbus RTU / Slave.
- Use IOGuidePro and "Protocol Messenger / Modbus"
- Standard RS-232 (straight cable) can be used
Link to Adapter Address
www.beijer.se 8 (35)
KI_eng_130531.dot, 070221

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
7Configuration of CODESYS
This installation has to be done once for every computer.
7.1 Add PIO (NA-9379) to CODESYS
•Change “Standard” to “Professional”
•Install PIO and I/O modules (device description file) to CODESYS
(Programmable IO_NA9379.devdesc.xml and ST-xxxx.devdesc.xml)
NOTE!
All “devdesc.xml” files can be installed at once if the file are in same library
www.beijer.se 9 (35)
KI_eng_130531.dot, 070221

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
•The file is installed under “PLCs” and the I/O moduls under “Miscellaneous”
www.beijer.se 10 (35)
KI_eng_130531.dot, 070221

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
8Configuration of PIO in CODESYS
8.1 Programming and configuration
•Start “CODESYS”
•Click “File” and Choose “New project”
•In “Templates”, mark “Standard project”
•In “Name”, write the name of the project
•In “Location” write the library to save the
project in…
•Click “OK”
•Select Ladder Logic Diagram (LD)
www.beijer.se 11 (35)
KI_eng_130531.dot, 070221

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
8.2 How to add a POU
•Highlight the “Application” option in the “Device” window and right click
•Select “Add Object” and choose “POU”.
Customize the POU according to desired characteristics.
www.beijer.se 12 (35)
KI_eng_130531.dot, 070221

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
8.3 How to add a Task
When a “Standard project” is selected, it automatically creates a "Main Task"
•Highlight the “Application” option (to make a “Task Configuration”)
or highlight the “TaskConfiguration” (to make a “Task”)
•Select “Add Object” and choose “Task Configuration” or “Task”
•Click “Open”, a task named “Task” is automatically created
8.4 How to add a POU to a Task
Connect the created POU to the task in order for the IEC code in the POU to get executed.
•Open the “MainTask”
•Under “POUs”, select “Add POU”
•In the “Items” window, under “Application”, highlight desired “POU” and click “OK”
www.beijer.se 13 (35)
KI_eng_130531.dot, 070221

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
8.5 PLC setting
•Interval time for the application (default value 20 ms)
Update the I/O, set the Bus cycle task and Output handle at stop.
•Double click at “Device (NA9379)” and select “PLC setting” and set like picture.
Note!
When test of I/O (hardware wiring) with an empty program or the PIO in STOP, set like picture.
In STOP mode, the digital outputs go to OFF state, even if they are set to ON as default setting.
www.beijer.se 14 (35)
KI_eng_130531.dot, 070221

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
8.6 Select I/O module
•Highlight the “Slot (Slot)” option in the “Device” window and right click at the module place
“Empty”
•Click at “Plug Device”, mark the module and “double click” at module or “Plug Device”
NOTE!
Select the module in order like the user configuration.
Auto scan are not supported.
www.beijer.se 15 (35)
KI_eng_130531.dot, 070221

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
8.7 Setting Device Parameter and I/O Mapping
•Mark the module and “right click” and then “Edit Object” or “double click” at module
8.7.1 Parameter setting (I/O Module)
•Mark the module and “right click” and then “Edit Object” or “double click” at module
Setting value can be read in the manual “FnIO_Configuration_Parameter_Memory_Register”
8.7.2 I/O Mapping
Connect the I/O to a variable
•Click ”Analog or Digital IOs I/O Mapping”
•Dubbel Click in “Variable” and get the variable from “Global Variable list”
www.beijer.se 16 (35)
KI_eng_130531.dot, 070221

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
9Program example
The folder “ProgExample_PIO_Basic”contains the program example from this StartUp document.
Can be downloaded from our homepage.
9.1 New project
•Configure the project like
9.2 Add Global Variable and Persistent Variables
The easiest way to edit the variables: use “textual”
•Global Variables
www.beijer.se 17 (35)
KI_eng_130531.dot, 070221

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
•Persistent Variables
www.beijer.se 18 (35)
KI_eng_130531.dot, 070221

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
9.3 I/O Mapping
•Mapping the I/O
Result
•Do the same for all input, output (digital and analog)
www.beijer.se 19 (35)
KI_eng_130531.dot, 070221

Programmable I/O (PIO) NA-9379, Basic setting KI00341 2014-10
9.4 Write program in “PLC_PRG
•Rebuild the program
•If no Error, go to next step!
View error, warning and message with “View \ Messages”
NOTE!
When “Generate code” there can be warning(s). It´s only a warning. The project is working correct.
www.beijer.se 20 (35)
KI_eng_130531.dot, 070221
Table of contents
Other Beijer Electronics I/O System manuals