Professional Documents
Culture Documents
ED-2002-126 Nexgenie PLC User Manual PDF
ED-2002-126 Nexgenie PLC User Manual PDF
Nexgenie PLC User Manual
Document No.: ED-2002-126 Version: 1.6
___________________________________________________________________________________
Revision:
___________________________________________________________________________________
Thanks for choosing Nexgenie product, the general purpose Programmable Logic
Controller. .Please refer this manual for Safety precautions, Installations, Instructions
& for diagnose.
Safety Precaution:
Danger Specifies that If proper precautions are not taken shall lead to
Hazardous state resulting in death depending on the circumstance
or severe injuries or substantial property damage.
Read and understand the manual carefully before use to avoid damages to persons, property &
environments and ensure safe & proper usage of this product.
The qualified personnel should only install & operate the product. The personnel should be
aware of all safety of automated products & completely familiar with all associated
documentation for the said product.
Manual should be located at the easily retrievable location for reference. Also provide this
manual to the user of this product.
General Operation:
Danger
Protect the product from conductive dust, corrosive gases, wire debris,
flammable gases, rain and fluid from entering into the product through ventilation
slits; this may cause malfunction, damage, fire, electrical shock & deterioration to
the product.
Product should not be exposed to high explosive risk, excessive magnetic
interference & inflammable substances.
Do not paint the product.
Switch OFF and unplug the connector from the power terminal for any changes
in the connections.
Use the product under normal environmental temperature condition meeting the
specification, under pollution degree 2.
Do not touch the conductive parts directly, this may cause malfunction, electric
shock.
If this product emit smoke or an unusual odor or unusual sound or unusual
operation, immediately switch OFF the power to the product. If the product is
continued in operation under such state, this shall result in fire & damage the
product. Contact the nearest authorized Sales / Repair agency of this product.
The peripheral equipment used should be appropriate for the application with this
product.
Do not modify, dismantle, re construction and repair the product. For repair
contact the nearest authorized Sales / Repair agency.
___________________________________________________________________________________
Servicing & Installation Safety:
Before touching the module, always touch grounded metal, etc. to discharge
static electricity from human body.
Provide external interlock circuit like emergency stop or protective circuit to keep
the systems safe in case there is problem in the PLC.
For output, place fail safe protective circuit external to PLC to ensure product
operates safety in case of PLC fault condition. Also built external output
monitoring circuit to identify the output to which the problem has occurred.
All maintenance should be carried out in accordance with established safety
practices.
Any commissioning or service engineer must be of a competent nature, trained
and qualified to the local and national standards required to fulfill that job. These
engineers should also be trained in the use and maintenance of the completed
product. This includes being All operators of the completed equipment should be
trained to use that product in a safe and coordinated manner in compliance to
established safety practices. The operators should also be familiar with
documentation, which is connected with the actual operation of the completed
equipment.
Note: The term ‘completed equipment’ refers to a third party constructed device,
which contains or uses the product associated with this manual.
This product does not contain any intentionally added mercury or cadmium.
In case this product is required to be disposed off, it should be done treating it as
“industrial waste” and disposed off adhering to relevant local and national laws of
the concerned country.
The following components contain substances that might be hazardous to health
and the environment:
- Electrolytic capacitor and LCD.
___________________________________________________________________________________
Content
1 Overview........................................................................................................1
4 Programming ...............................................................................................26
4.1 Set up....................................................................................................................... 26
4.2 PLC Configuration ................................................................................................... 30
..Content
5 PLC Memory................................................................................................31
5.1 Input Process Image................................................................................................ 31
5.2 Output Process Image ............................................................................................. 31
5.3 Marker Memory........................................................................................................ 31
5.4 Data Memory ........................................................................................................... 32
5.5 I/O Memory Mapping ............................................................................................... 32
5.6 Addressing Range ................................................................................................... 34
5.7 Retained Memory .................................................................................................... 35
5.8 System Variables..................................................................................................... 36
5.9 Application Program Memory .................................................................................. 37
9 Frequency Measurement.............................................................................51
12 System Variables.........................................................................................60
..Content
13 Visual Access Window ................................................................................65
13.1 VAW Screen Handling ............................................................................................. 66
13.1.1 Screen Navigation................................................................................................................. 66
13.1.2 Functionality of Keys ............................................................................................................. 67
13.1.3 Typical Example: PLC Data Modification .............................................................................. 68
13.2 System Menu ........................................................................................................... 71
13.2.1 Log Out ................................................................................................................................. 72
13.2.2 Log In .................................................................................................................................... 73
13.2.3 System Info ........................................................................................................................... 76
13.2.4 I Monitor ................................................................................................................................ 77
13.2.5 Q Monitor .............................................................................................................................. 79
13.2.6 M Monitor .............................................................................................................................. 80
13.2.7 Clock ..................................................................................................................................... 81
13.2.8 PSW Modify .......................................................................................................................... 83
13.2.9 VAW Setup ........................................................................................................................... 86
1 Overview
Nexgenie PLC is a compact and genius PLC suitable for small size machine control.
Highlighting Features
1. Variety of base units and expansion units to choose from onboard digital inputs,
analog inputs and digital outputs (transistor and relay)
2. Up to 4 expansion units to expand up to 80 digital I/Os maximum
3. Configurable digital inputs in the base unit
• Up to 6 single phase counters with software direction and start/stop control.
4 counters (I00, I01, I03, I04) up to 20 KHz and 2 counters (I02, I05) up to 5
KHz
• Up to 2 Quadrature ABZ encoders
• Encoder interface supports up to 10 KHz input frequency on individual phase.
• Additionally all high speed inputs can be individually configured for
• Hardware input interrupt
• Frequency measurement function (time period measurement with 1µs
resolution) up to 5 KHz input frequency.
4. Provides 1 Pulse Train Output channel (pulse and direction)
• 24 VDC source type
• Output frequency from 1 Hz to 2000 Hz
5. Supports interrupt events to provide fast and predictable response to external
events from the field such as. digital input interrupt, counter count match, etc
• One periodic interrupt event with 0.5/ 1 ms resolution. Periodic interrupt can be
set from 0.5/ 1ms to 1250/2500 ms.
• Up to 4 high speed counter compare interrupts
• Up to 6 hardware input rising edge and falling edge interrupts
• Pulse Train Output compare interrupt and Pulse Train Output done interrupt.
6. Two serial ports
• Port 1 / PG Port (RS232/485) with modem interface
• Port 2 (RS232/422/485) with modem interface
7. Transistor outputs with short circuit protection
8. Built-in Real Time Clock
9. Optional Visual Access Window (VAW) for monitoring and setting PLC data,
display machine status and fault status
• 128 x 64 pixel graphics LCD with white backlit
• 4 system keys
• Supports text and graphical symbols
10. PLC input power is 24 VDC
11. Common programming platform i.e. Windows based IEC 61131-3 compatible
programming software CoDeSys
____________________________________Page 1 of 106__________________________________
System Configuration and Specifications
This chapter discusses about variants of base unit and expansion unit and
specifications in detail.
____________________________________Page 2 of 106__________________________________
System Configuration and Specifications
2.2 Nomenclature
The figure below shows the front view of the Nexgenie base unit along with
nomenclature.
3 2 1
14
4 13
12
5
11
6
10
7
9
8
____________________________________Page 3 of 106__________________________________
System Configuration and Specifications
2.3 Specifications
Subsequent sections provide Nexgenie PLC specifications in details
IP protection IP20
____________________________________Page 4 of 106__________________________________
System Configuration and Specifications
General specifications…
____________________________________Page 5 of 106__________________________________
System Configuration and Specifications
1 Mbytes flash
Source code memory Stores project file with symbolic names, comments,
visualization screens , libraries (optionally)
____________________________________Page 6 of 106__________________________________
System Configuration and Specifications
Technical specifications..
1 (EVENT_PERIODIC)
Periodic 05/ 1ms resolution
Settable from 0.5/ 1ms to 1250/2500 ms.
Up to 4
Counter compare ( EVENT_HSC0_CMP, EVENT_HSC1_CMP,
EVENT_HSC3_CMP, EVENT_HSC4_CMP )
Up to 6 Rising edge and falling edge
Interrupt events
( EVENT_IX0_R_TRIG to EVENT_IX5_R_TRIG and
Hardware input EVENT_IX0_F_TRIG to EVENT_IX5_F_TRIG )
Pulse ON time: 100 µsec minimum
Pulse OFF time: 2 msec minimum
Up to 3
PTO compare ( EVENT_PTO1_CMP, EVENT_PTO2_CMP,
EVENT_PTO1_DONE )
____________________________________Page 7 of 106__________________________________
System Configuration and Specifications
____________________________________Page 8 of 106__________________________________
System Configuration and Specifications
4
Counter
( EVENT_HSC0_CMP, EVENT_HSC1_CMP,
compare
EVENT_HSC3_CMP, EVENT_HSC4_CMP )
Interrupt 6 Rising edge and falling edge
Events ( EVENT_IX0_R_TRIG to EVENT_IX5_R_TRIG and
Hardware EVENT_IX0_F_TRIG to EVENT_IX5_F_TRIG )
input
Pulse ON time: 100 µsec minimum *3
Pulse OFF time: 2 msec minimum
*1 – Digital input specifications above are applicable for first 4 inputs (I00 to I03) in Nexgenie
base unit NG16ADL/N and NG14ARL/N.
*2 - Any high speed input does not support frequency measurement and falling/rising edge
interrupt simultaneously.
*3 - Input OFF time required is 2 msec minimum to cater input falling edge interrupts. Input ON
time required is 50 µsec minimum in this case.
All the six high speed inputs can support rising edge input interrupt occurred
simultaneously. In this case, Input ON time required is 100 µsec X number of inputs
configured. Otherwise, input ON time can be 100 µsec. Input OFF time should be 2 msec.
____________________________________Page 9 of 106__________________________________
System Configuration and Specifications
Update time 4 msec max for all the 4 channels; updated in Input scan
Channel to channel
Isolation Channel to internal logic Nil
____________________________________Page 10 of 106__________________________________
System Configuration and Specifications
* - Pulse Train Output duty cycle varies across the frequency range. It varies from 50% to 70%
as output frequency changes from 500 Hz to 2 KHz.
____________________________________Page 11 of 106__________________________________
System Configuration and Specifications
____________________________________Page 12 of 106__________________________________
Installation and Wiring
This chapter discusses about installation and wiring of base unit and expansion unit.
3.1 Installation
Both base and expansion unit can be mounted on standard TS 35 DIN rail
97
The figure below shows expansion unit views with dimensions. All dimensions are in
mm.
58 65
97
The figure below shows dimensions of standard TS 35 DIN rail. All dimensions are in
mm.
1
35
7.5
Figure 4: Dimensional details of standard DIN rail
____________________________________Page 13 of 106__________________________________
Installation and Wiring
3.1.2 Mounting
To mount the PLC Base as well as Expansion on the DIN rail,
1. Pull the DIN clip downwards till it clicks
2. Hook base unit on the rail and push down on the rail
3. Push the DIN clip upward till it clicks
4. The unit will clamp on the rail.
The figure below shows back side view of base and expansion unit after mounting on
DIN rail.
Hooks on PLC
DIN Rail
DIN Clip
____________________________________Page 14 of 106__________________________________
Installation and Wiring
Follow the steps below to connect expansion unit to base unit or to another expansion
unit
1. Remove terminator plug of the base or previous expansion unit
2. Pull the DIN clip of expansion unit downwards till it clicks
3. Hook expansion unit on the rail and push down on the rail
4. Insert interface cable plug into the socket of the earlier unit till it fits snugly at
the end of the cable
5. Slide the expansion unit towards the earlier one.
6. Push the DIN clip upward till it clicks
7. The unit will clamp on the rail.
8. Repeat this process for other expansion units
9. Ensure that the terminator plug is in place on the last expansion unit
____________________________________Page 15 of 106__________________________________
Installation and Wiring
On Ceiling
D = 50 mm
Horizontal Vertical On Floor
1. In case of small sized panels care shall be taken to keep more clearances on right
side so as to facilitate proper viewing of the label on the underside of the flap.
2. The unit is designed as an 'open type unit' which requires it to be installed in a
suitable panel protecting from heat, dust and water.
3. If only base unit (without any expansion unit) is installed, ensure that the terminator
plug is fitted on expansion connector on its right side.
4. The expansion units should be connected to the base unit in tandem with the supplied
flat cables. It is necessary to remove terminator plug from Base unit and fix it on the
last unit on its right side. This is mandatory for system operation.
5. In case of possible vibrations/shocks to the panels in use, the unit shall be required to
be protected from sliding movement in the rail by use of clamps from both sides of the
unit to avoid dislocation of wires and connectors causing malfunction.
6. For performance that is least susceptible to external EMI the low voltage and high
voltage noise prone wires should be physically isolated and laid out separately in the
panel. In cases where crossing is found to be inevitable the cables should cross at
right angles to avoid cross talk.
7. A strip of paper of width 50mm or so is recommended to be wrapped around the unit
sides during installation and wiring to avoid small pieces of wire ends or strands or
washers or drilling burr et cetera from falling into the unit and getting trapped on
boards causing severe damage mechanical or electrical shorts in the miniature
electronic components on the boards. The paper should be removed without fail
before putting the system in use
8. Individual connector wires may be dressed to leave the unit from top and bottom
sides so as to give natural isolation between input and output sides or clubbed
together to leave from one side of unit.
9. Use shielded cable for communication with external device & proper termination of
shield to be done to the earth.
____________________________________Page 16 of 106__________________________________
Installation and Wiring
3.2 Wiring
3-pin removable connector is provided to connect PLC power supply. The figure
below shows connections of 24 VDC power supply to base unit
24V +DC
24V–DC
EARTH
Expansion units are powered on with same 24 VDC. It gets connected through
expansion cable.
+,-, E Connections
24 VDC supply (18 to30 VDC including ripple) is connected between + and –
terminals.
Earth should be connected to a good quality factory ground. For this matter the
complete PLC installation should have a single electrical grounding point, which can
be called a reference ground. This can be either grounding point of an electrical
cabinet or the main earth bus-bar. The earth line on unit should be connected to this
ground by copper wire with a size of 1mm². This connection should be direct,
continuous and permanent.
Refer General specifications to know power consumption by different base and
expansion units.
Power ON indication
Marked as .Power ON LED glows when proper input 24Vdc power supply is
connected and internal 5Vdc supply is generated.
It is OFF if internal 5 VDC is not generated or input power 24 VDC not connected or
incoming fuse blown off.
Fuse protection
Miniature glass fuse protection (630 mA) is provided on board to protect incoming 24
VDC supply. This fuse is soldered on PCB. It is recommended to connect a Miniature
Circuit Breaker (MCB) of proper rating in series with mains as additional protection
and to serve as a manual isolator.
____________________________________Page 17 of 106__________________________________
Installation and Wiring
The figure below shows how to interface field inputs like potential free push buttons
and limit switches for sink and source operation. Either group can be wired for sink or
source. Connection details as below are provided on the back side of the connector
cover.
Current Current
I00 I00
I01 I01
I02 I02
I03 I03
C0 C0
The figure shows how to interface PNP and NPN type of proximity switches as an
example in one of the inputs. In normal course where the proximity switch–off current
is below 1.5 mA the bleeder resistor would not be required. In case the off currents
are greater than 1.5 mA typically the excess current would have to be bled through
the bleeder resistor [Rb = Vin / (loff-1.5)] (Rb in Kilo-ohms, Vin in Volts and loff in mili
amperes).
Base unit NG16DL/N and NG14RL/N provides 6 (I00 to I05) high speed inputs where
as base unit NG16ADL/N and NG14ARL/N provides 4 (I00 to I03) high speed inputs
____________________________________Page 18 of 106__________________________________
Installation and Wiring
Nexgenie base unit NG16ADL/N and NG14ARL/N provides 4 inputs (I04 to I07) as
digital or analog input points. One can interface either digital input (for source
operation only) or analog voltage (0 to 10 VDC) signal to these inputs.
The figure below shows how to interface field inputs like potential free push buttons
and limit switches for source operation. This group can be wired for source operation
only.
The figure below also shows how to interface analog voltage (0 to 10 VDC) to inputs
I06 and I07 for an example. Analog input interface is single ended.
Connection details as below are provided on the back side of the connector cover.
Current
I04
I05
I06 + Digital inputs (DI/AI)
V
I07 + V can be interfaced for
source operation only
C1
There is no isolation between DI/AI and internal logic. Input common point C1 and
PLC power supply ground are connected together internally.
When analog voltage signal interfaced at DI/AI input is more than 9.5 VDC, then
respective input LED (green) indication turns ON.
The figure shows how to interface PNP type of proximity switches as an example in
one of the inputs. In normal course where the proximity switch–off current is below
1.5 mA the bleeder resistor would not be required. In case the off currents are greater
than 1.5 mA typically the excess current would have to be bled through the bleeder
resistor [Rb = Vin / (loff-1.5)] (Rb in Kilo-ohms, Vin in Volts and loff in mili amperes)
____________________________________Page 19 of 106__________________________________
Installation and Wiring
The figure below shows the connection details for transistor output. Connection
details as below are provided on the back side of the connector cover
Current
Q00
L
Q01
L
Q02
L
Q03
L
Q04
L
Q05
L
Q06
L
Q07
L
V
G
24 VDC load supply
The figure below shows the connection details for relay outputs.
First terminal is not used. Then 2 consecutive outputs are grouped together with one
common.
Connection details as below are provided on the back side of the connector cover
Fuse external
Q00
L
Q01
L
C0
Q02
L
Q03
L
C1
Q04
L
Q05
L
C2
AC load supply
Figure 12: Relay output connections
____________________________________Page 20 of 106__________________________________
Installation and Wiring
____________________________________Page 21 of 106__________________________________
Installation and Wiring
Base unit provides PLC status indicating LEDs and base I/O status LEDs. Six LEDs
are provided on the left top of the base unit to provide status and diagnostic
information of total system.
The table below explains the significance of CPU diagnostics related LEDs
LED Color Status Description
ON Power supply (internal 5 VDC) is healthy
Power supply (5 VDC) is not generated
Power Green
OFF Input power 24 VDC not connected
____________________________________Page 22 of 106__________________________________
Installation and Wiring
The table below explains the significance of input output related LEDs
LED Color Status Description
Input I00 to I07 ON Input is ON
Green
(marked as 0, 2, 4, 6)
OFF Input is OFF
ON Output is ON
Output Q00 to Q07
Red
(marked as 0, 2, 4, 6)
OFF Output is OFF
Input and output LED indications are updated after an interval of 130 ms. Hence, user
should not co relate LED indication for input and output switching ON OFF at faster
rate.
____________________________________Page 23 of 106__________________________________
Installation and Wiring
3.3.1 Functioning
After power ON, when ever expansion unit is connected, CPU detects it and starts I/O
data exchange. Some system variables are updated to provide the status of base and
expansion units as below
_AMODULEORDERINGCODE This array holds string of ordering codes for base and
expansions.
ARRAY [0..4] OF STRING (10)
_AMODULEORDERINGCODE[0] indicates ordering code
for base, _AMODULEORDERINGCODE[1] indicates
ordering code for Expansion1 (in slot1) and so on.
As long as CPU continues I/O data exchange with expansion unit, one Yellow LED
indication (named as E) on expansion unit remains OFF. If CPU is not communicating
with expansion unit, then ‘E’ LED glows and all the outputs on that expansion unit are
switched to a safe state i.e. OFF. One of the common causes is when CPU is put in
STOP mode.
I/O data exchange between CPU and expansion units takes place either on change
or elapse of 1 sec duration.
____________________________________Page 24 of 106__________________________________
Installation and Wiring
Digital expansion unit provides unit status and I/O status LED indications as shown in
the table below
____________________________________Page 25 of 106__________________________________
Programming
4 Programming
4.1 Set up
PLC serial port1 provides RS232C/ RS485 interface and is used as programming
port. Connect one end of programming cable (ordering code 1910 or 9910) to port1
and another end to PC COM port as shown below
Programming cable
1910/ 9910
Execute menu command File Æ New to create new PLC program. ‘Target Setting’
dialogue box appears as shown below.
____________________________________Page 26 of 106__________________________________
Programming
Select ‘Nexgenie Tm.n’ from drop down list of Configuration and click on OK button.
m and n shows target version’
‘New POU’ window is popped up for program type POU ‘PLC_PRG’. Select language
of POU and click on OK button.
____________________________________Page 27 of 106__________________________________
Programming
Ladder program
Message window
Menu command Program Æ Rebuild all/ Build displays compilation errors if any in
Messages window.
Once compilation is successful (0 Error(s)), program can be downloaded to PLC.
To download program, it is necessary to set communication parameters. Click on
menu Online Æ Communication parameters to pop up a window as shown below
____________________________________Page 28 of 106__________________________________
Programming
Select PC COM port (from choice of COM1 to COM31) by double clicking on Port
value field or using up/ down arrow keys and click on OK button
To download program to PLC, execute menu command Online Æ Login.
During download, following message box is displayed.
Click on Yes or No button so that a new dialogue box is popped up as shown below
Click on Yes button to download source code to PLC. Downloading of source code
is mandatory.
Once, source code download is over, put PLC in RUN mode
PLC starts executing application program and update inputs and outputs.
To upload application program from PLC, execute menu command File Æ Open Æ
Open project from PLC. But upload is possible only if source code is downloaded
earlier.
____________________________________Page 29 of 106__________________________________
Programming
____________________________________Page 30 of 106__________________________________
PLC Memory
5 PLC Memory
____________________________________Page 31 of 106__________________________________
PLC Memory
Instructions Refresh_In and Refresh_Out can update digital I/Os (not analog I/Os)
immediately in logic scan.
Input image of digital inputs in base unit is updated even if inputs are configured for
special functionality like high speed counter but it may not be useful in the application.
Nexgenie base unit NG16ADL/N and NG14ARL/N provides 4 inputs (I04 to I07) as
digital or analog input points. One can interface either digital input (for source
operation only) or analog voltage (0 to 10 VDC) signal to these inputs.
Nexgenie base unit NG16ADL/N and NG14ARL/N converts analog voltage input
signal (0 to 10 VDC) to digital output and stores in input image memory. This analog
input data (0 to 1023) proportional to analog input signal is stored in input image as
shown below
Input Analog data
I04 %IW16
I05 %IW18
I06 %IW20
I07 %IW22
____________________________________Page 32 of 106__________________________________
PLC Memory
%MXmmmm.n
% denotes fixed Bit position within byte.
memory address It can be 0 to 7.
The figure below shows memory mapping and significance of BOOL, BYTE, WORD
and DWORD data type.
7 6 5 4 3 2 1 0
0000 ↕%MB0 %MW0 %MD0
0001 ↕%MB1
0002 ↕%MB2 %MW2 %MD2
0003 ↕%MB3
%MX3999.7
____________________________________Page 33 of 106__________________________________
PLC Memory
Points to remember
1. In Nexgenie PLC, memory mapping is byte wise. All the 8 bits (0 to 7) within a
byte can be addressed.
2. When memory is addressed as word, then two consecutive bytes are accessed.
Byte at start address is lower byte and next byte is higher byte. Memory words
can be accessed only with even address e.g.%MW0,%QW2,%MW4 etc and not
%IW1,%MW3, etc
3. When memory is addressed as double word, then two consecutive words (i.e.
four consecutive bytes) are accessed. Word at start address is lower word and
next word is higher word. Memory double words can be accessed only with even
address e.g.%ID0,%QD2,%MD4,%MD3996, etc and not %ID1,%QD3,%MD3991
etc.
%IX31.0 to %IX31.7
Input BYTE I B %IB0, %IB1, %IB2 to %IB31
Input WORD I W %IW0, %IW2, %IW4 to %IW30
Input DWORD I D %ID0, %ID4, %ID8 to %ID28
%QX0.0 to %QX0.7
%QX1.0 to %QX1.7
Output BOOL Q X
%QX31.0 to %QX31.7
Output BYTE Q B %QB0, %QB1, %QB2 to %QB31
Output WORD I W %QW0, %QW2, %QW4 to %QW30
Output DWORD I D %QD0, %QD4, %QD8 to %QD28
%MX0.0 to %MX0.7
%MX1.0 to %MX1.7
Marker BOOL M X
%MX3999.0 to %MX3999.7
Marker BYTE M B %MB0, %MB1, %MB2 to %MB3999
Marker WORD M W %MW0, %MW2, %MW4 to %MW3998
Marker DWORD M D %MD0, %MD2, %MD4 to %MD3996
____________________________________Page 34 of 106__________________________________
PLC Memory
Retained data is stored in FRAM type of memory. Cold initialization resets entire
memory (including retentive memory) to 0 or user defined initial value.
Points to remember
1. User can define PLC variable as retentive using keyword VAR RETAIN. Local as
well as global variable can be declared as retentive.
e.g.
VAR RETAIN
Data1: WORD;
END_VAR
Here, variable declared with symbolic name Data1 is retained.
2. Marker memory form %MB3700 to %MB3999 is retained by default if user
accesses it directly by marker memory address (and not declared with some
symbolic name). Whereas remaining marker memory from %MB0 to %MB3699 is
cleared at warm initialization.
3. If any variable with symbolic name is mapped at marker memory address from
%MB3700 to %MB3999, it is cleared at warm initialization as shown below
VAR
Data1 AT%MW3700: WORD;
END_VAR
To retain this variable, user has to declare it as retentive as below
VAR RETAIN
Data1 AT%MW3700: WORD;
END_VAR
4. Any variable mapped outside specified marker memory is not retained even
though declared as retentive.
e.g.
VAR RETAIN
Data10 AT%MW1000: WORD;
Op2 AT%QB2: BYTE;
END_VAR
Here, variables Data10 and Op2 will never be retained.
____________________________________Page 35 of 106__________________________________
PLC Memory
5. If user declares function block instance as retentive, then the complete instance of
the function block (all the data of function block instance) is retained.
e.g.
VAR RETAIN
T1: TON;
END_VAR
If instance T1 of ON delay timer TON is declared as retentive, then 15 bytes of
data memory is retained.
6. During application program compilation, programming software ‘CoDeSys’ checks
PLC variables declared by symbolic name (and not mapped at I/Q/M memory) for
retained size limit of 700 bytes. If retained size exceeds 700 bytes, it displays
compilation error as
Error 3802: <POU Name>(<line number>): Out of retain memory. Variable
‘<name>’, <number> bytes
But for PLC variables mapped at marker memory (as well as for input and output
memory), it does not check for retained size limit of 300 bytes. It does not display
any compilation error for user mistake.
____________________________________Page 36 of 106__________________________________
PLC Memory
____________________________________Page 37 of 106__________________________________
PLC Memory
Points to remember
1. Download source code is mandatory so that entire application project remains
with PLC and can be retrieved later on whenever required.
2. Programmer can restrict unauthorized uploading of source code by programming
read protection password and write protection password.
3. During source code download / upload, Visual Access Window screen is not
updated.
4. During Update OS or downloading New OS using PC based Bootstrap utility,
application program code (User Ladder Code) can be erased as per choice but
source code can not be erased.
5. Source code hardware fault is indicated by blinking ‘S’ LED after PLC power ON.
Replace base unit in such case.
The block diagram below shows CoDeSys menu commands to download and upload
application program.
____________________________________Page 38 of 106__________________________________
Serial Communication Ports
Nexgenie PLC provides two serial communication ports which can communicate to
different third party devices. The figure below shows the part of Nexgenie PLC with
both serial ports.
Two serial ports (port1 and Port2) are provided with two 9-pin D male connectors
located on the front side. Both serial ports are open ports and various baud rates up
to 115.2 Kbps are supported. Both serial ports support modem interface. For both
ports, serial communication handling functions and FBs like OpenPort, SendByte,
ReceiveByte, Port_Status are supported in Nexgenie.lib library.
____________________________________Page 39 of 106__________________________________
Serial Communication Ports
5 9
GND: 5
9: D+ (RS485)
+5V: 4
8: Reserved
TxD (RS232C): 3 7: D- (RS485)
RxD (RS232C): 2 6: TR selection
Carrier Detect (RS232C): 1 6
1
User can interface memory cassette (ordering code 9904) to port 1 using patch cable
(ordering code 1911). Then user can transfer application program code and/or source
code from memory cassette to CPU without any need of programming software. 5
VDC supply between pins 4 and 5 is used to power up the memory cassette.
Programming software ‘CoDeSys’ is interfaced to port1 using programming cable
(ordering code 9910) for downloading application program and for online monitoring.
For programming, default communication parameters are 38.4 Kbps, Odd, 8, 1.
By default, port 1 supports Nexgen_Slave protocol with communication parameters
as 9.6 Kbps, Odd, 8, 1, half duplex mode. User has to program protocol Function
Block in application program if s/he wants different protocol or different
communication parameters.
____________________________________Page 40 of 106__________________________________
Serial Communication Ports
6.2 Port 2
Serial port2 is RS232C/422/485 port with connection details as below.
GND: 5 5 9
9 :Rx+ (RS422)
Tx+ (RS422): 4
8 :Rx- (RS422)
TxD (RS232C): 3
7 :Tx- (RS422)
RxD (RS232C): 2 6 :TR sélection
Carrier Detect (RS232C): 1
6
1
____________________________________Page 41 of 106__________________________________
Real Time Clock
Nexgenie library supports various functions to read from and write to Real Time
Clock through application program as shown below.
Description
Returns RTC Date in IEC data type DATE format
Returns RTC Date and Time in IEC data type DT format
Returns RTC Time in IEC data type TIME format
Writes new Date to RTC
Writes new Date and Time to RTC
Writes new Time to RTC
Refer Nexgenie Library User Manual to know more about usage of such functions in
the application program
____________________________________Page 42 of 106__________________________________
Real Time Clock
Additionally, user can set and monitor Real Time Clock on Visual Access Window
(VAW). System menu provides the screen as shown below.
Tm=13:37:25
hh:mm:ss
Dt=2009-01-30 Time is shown in format
Date is shown in format HH:MM:SS
YYYY-MM-DD yyyy-mm-dd▲
____________________________________Page 43 of 106__________________________________
High Speed Counter
In Nexgenie PLC base unit, first 6 digital inputs are high speed inputs. These digital
inputs can be configured for different modes of counter operation and frequency
measurement operation. The numbering of counters and different modes of
operation with maximum frequency allowed as well as necessary program blocks is
explained in the table below.
Inputs I00 I01 I02 I03 I04 I05
Description
Single phase counter with HSC0 HSC1 HSC2 HSC3 HSC4 HSC5
software direction control
20 KHz 5 KHz 20 KHz 5 KHz
____________________________________Page 44 of 106__________________________________
High Speed Counter
I00 I00
I01 24 VDC I01 24 VDC
input supply input supply
I02 I02
I03 I03
C0 C0
I04 I04
I05 I05
Inputs I00, I01, I03 and I04 can count input frequency up to 20 KHz.
Pulse ON and OFF time allowed for inputs I00, I01, I03 and I04 is 20 µsec
minimum.
Inputs I02 and I05 can count input frequency up to 5 KHz.
Pulse ON and OFF time allowed for inputs I02 and I05 is 50 µsec minimum.
Necessary program block to configure the functionality is “HSCn” in Nexgenie_Util
library where n is counter number (and input number) as 0 to 5. The picture below
shows program block “HSC0” with its input and output parameters.
____________________________________Page 45 of 106__________________________________
High Speed Counter
The figure below shows action of Reset and Direction control on single phase
counter.
RESET
DIR
I00-I05
5
4 4 3
3 3 2
2 2 1
1 0 1
Count 0
CV -1
-2
If RUN is TRUE, counter starts counting. If RUN is FALSE, counter does not count
and counter current value CV holds last value.
At rising edge (OFF to ON) at input, count increments by 1 if counting direction set
is FALSE.
At rising edge (OFF to ON) at input, count decrements by 1 if counting direction set
is TRUE.
Counter current value is reset to 0 as long as Reset is TRUE.
User can modify counter current value at any time and counter starts counting from
modified value afterwards.
____________________________________Page 46 of 106__________________________________
High Speed Counter
I00 A phase
I01 B phase
I03 A phase
C0
I04 B phase
C1
____________________________________Page 47 of 106__________________________________
High Speed Counter
The figure below shows action of Reset and direction control depending upon phase
shift beteen A phase and B phase.
RESET
I00/I03
A phase
I01/I04
B phase
11
Count 1 0
CV
-3
-4
If RUN is TRUE, counter starts counting. If RUN is FALSE, counter does not count
and counter current value CV holds last value.
At rising edge (OFF to ON) as well as falling edge (ON to OFF) at A phase and at
rising edge (OFF to ON) as well as falling edge (ON to OFF) at B phase, count
increments by 1 if A phase is leading B phase.
At rising edge (OFF to ON) as well as falling edge (ON to OFF) at A phase and at
rising edge (OFF to ON) as well as falling edge (ON to OFF) at B phase,count
decrements by 1 if A phase is lagging B phase.
Counter current value is reset to 0 as long as Reset is TRUE.
User can modify counter current value at any time and counter starts counting from
modified value afterwards.
____________________________________Page 48 of 106__________________________________
High Speed Counter
I00 A phase
I01 B phase
I02 Z pulse
I03 A phase
C0
I04 B phase
I05 Z pulse
C1
____________________________________Page 49 of 106__________________________________
High Speed Counter
The figure below shows action of Reset and Z input on encoder count.
RESET
Z_En
I02/I05
Z pulse
I00/I03
A phase
I01/I04
B phase
12
6
5
Count 1 0
CV
-1
If RUN is TRUE, counter starts counting. If RUN is FALSE, counter does not count
and counter current value CV holds last value.
At rising edge (OFF to ON) as well as falling edge (ON to OFF) at A phase and at
rising edge (OFF to ON) as well as falling edge (ON to OFF) at iB phase, count
increments by1 if A phase is leading B phase.At rising edge (OFF to ON) as well as
falling edge (ON to OFF) at A phase and at rising edge (OFF to ON) as well as
falling edge (ON to OFF) at B phase,count decrements by 1 if A phase is lagging B
phase.Counter current value is reset to 0 as long as Reset is TRUE.
If user enables Z action then counter current value gets reset to 0 on occurrence of
Z pulse. It remains 0 as long as Z marker pulse in ON.
User can modify counter current value at any time and counter starts counting from
modified value afterwards.
____________________________________Page 50 of 106__________________________________
Frequency Measurement
9 Frequency Measurement
User can individually configure the six high speed inputs to measure input pulse
frequency. In fact it measures time period (T) between consecutive rising edges.
Time measurement resolution is 1 µsec. It is carried out after elapse of sample
period. This sampling period is stored in system variable _SAMPLING_PERIOD
which holds 1 by default and it corresponds to 10 msec. Any high speed input can
be configured for frequency measurement and pulse counting simultanously.
Maximum pulse rate for time duration measurement is 5 KHz for individual input.
Additionally, sum of input frequencies for all channels should not exceed 10 KHz.
Minimum pulse ON and OFF time (for frequency measurement) is 50 µsec.
Necessary program block to configure the functionality is “Freqn” where n is counter
number (and input number) as 0 or 5. The picture below shows instruction “Freq0”
with its input and output parameters.
Programmer can set Minimum frequency (taken into account sampling period; 10
msec by default) so that if input frequency is less that set MinFrequency then
program block returns 0. Do not keep MinFrequency > 50 Hz for default sampling
period is 10 msec.
Any high speed input does not support frequency measurement and falling/rising
edge interrupt simultaneously
____________________________________Page 51 of 106__________________________________
Interrupt Events
10 Interrupt Events
In the design of a real time system, the designer requires flexible and configurable
control over the execution of different Program Organization Units (POUs) of the
application program. Program type POU PLC_PRG is executed in freewheeling
mode. Some POUs may get executed cyclically after predefined time interval. For
some POUs, execution can be in response to the particular high priority interrupt
event which is non-cyclic. Interrupt event can be periodic timer interval elapse,
hardware input changing its state, high speed counter value matching the preset
value, etc. Interrupt events require immediate action. It stops normal freewheeling
execution called as PLC scan, performs specific POU execution, returns back to
suspended point and resumes from the point where normal freewheeling execution
was interrupted.
Nexgenie PLC supports several interrupt events. In case of multiple interrupt
events, execution needs to be prioritized. Such interrupt events are queued and
executed one by one depending upon the priority.
____________________________________Page 52 of 106__________________________________
Interrupt Events
____________________________________Page 53 of 106__________________________________
Interrupt Events
1
No. of periodic interrupt
Event number ENUM
events
1 EVENT_PERIODIC
Resolution _EVENT_BPERIODIC_RESOLUTION
_EVENT_WPERIOD
Associated system variables
_EVENT_BPERIODIC_RESOLUTION
EVENT_PERIODIC
POU execution
____________________________________Page 54 of 106__________________________________
Interrupt Events
4
Event number ENUM
4 EVENT_HSC3_CMP *2
5 EVENT_HSC4_CMP
Time interval between 1 ms minimum (additionally depends upon assigned POU
successive interrupt events execution time)
Associated function and
function blocks
HSC_SET_CMP
*1 – Refer ED-2002-223 Nexgenie_Util library manual for configuring and handling base inputs
for different modes of counter operations.
Compare interrupt events are not supported for single phase counters at I02 and I05
____________________________________Page 55 of 106__________________________________
Interrupt Events
6
Event number ENUM
*1 - Any high speed input does not support frequency measurement and falling/rising
edge interrupt simultaneously
*2 - All the six high speed inputs can support rising edge input interrupt occurred
simultaneously. In this case, Input ON time required is 100 µsec X number of inputs
configured. Otherwise, input ON time can be 100 µsec. Input OFF time should be 2
msec.
____________________________________Page 56 of 106__________________________________
Interrupt Events
Base unit outputs Q00 and Q01 (consider base unit models with transistor outputs)
can be configured as PTO (2 KHz maximum) of 24 VDC source output type. Base
output Q00 is a pulse output and Q01 is a direction output. For more details, rfer
chapter 11 Pulse Train Output
Apart from pulse generation, PLC offers interrupt generation in case of following
events
1. when ever PTO current value equals to the predefined value (set by executing
function SET_PTO_CMP1 and SET_PTO_CMP2).
2. when ever pulse generation is completed as per set PV of program block PTO0.
This is possible when input parameter OP of program block PTO0 is FALSE.
3
Event number ENUM
No. of PTO compare
interrupt events 18 PTO1_DN
19 EVENT_PTO1_1
20 EVENT_PTO1_2
____________________________________Page 57 of 106__________________________________
Pulse Train Output
Many lower end automation applications require Pulse Train Output up to 2 KHz to
control stepper motor. Nexgenie base unit offers cost effective solution for such
applications.
Apart from normal digital output, first two outputs on base unit can be configured as
Pulse Train Output channel (pulse and direction). Output Q00 acts as pulse output
and output Q01 acts as direction output.
It provides 24 VDC source type of PTO.
It can generate PTO from 1 Hz to 2 KHz.
The figure below shows connection diagram for base unit NG16DL
Q00 Pulse
Q01 Direction
Q02 Fwd Rev
Q03
Q04
Q05
Q06
Q07
V
G
24 VDC load supply
As output LED indications are updated after an interval of 130ms, output LED
indications for Q00 and Q01 has no relevance when configured as PTO channel.
____________________________________Page 58 of 106__________________________________
Pulse Train Output
Normally base outputs Q00 and Q01 act as normal digital outputs. Once program
block PTO0 is called and executed in the application program, base outputs Q00 and
Q01get configured as PTO channel and are controlled by executing program block
PTO0 only. Afterwards even if PTO0 is not executed, outputs Q00 and Q01 are not
updated (switched ON / OFF) as per output image (%QX0.0 and %QX0.1) in output
scan.
When RUN is TRUE, program block generates pulse train output as per programmed
frequency (FREQ) and preset number of pulses (PV). Once pulse generation is
completed, DONE bit becomes TRUE. DIR decides direction and if DIR is FALSE,
Q01 remains OFF and if DIR is TRUE, Q01 remains ON.
OP decides mode of pulse generation. If it is FALSE, program block generates
number of pulses as per PV. If it is TRUE, pulses are generated continuously as long
as RUN is TRUE.
Status of DIR and OP is detected at rising edge of RUN only. Once pulse generation
is started, any change in DIR and OP is ignored.
____________________________________Page 59 of 106__________________________________
System Variables
12 System Variables
The system variables are implicitly defined global variables, which exchange the information between the CPU and the application program. Each
system variable has a unique Name, which starts with underscore ‘_’. The table below explains the significance of system variables –
Data
Name of System Variable Access Description
Type
_BINITSTATUS Holds the status of CPU initialization. This byte is updated whenever related action is executed.
Hot Initialization
_BINITSTATUS holds 1, if system detects a power break for less than 15 ms but greater than 10 ms. In this
case PLC functioning is normal as if there is no power disturbance.
Warm Initialization
_BINITSTATUS holds 2 on healthy power ON, if system detects a power break for more than 15 ms. It
results resetting of data, which is not retained.
BYTE Read only CoDeSys menu command Online Æ Reset causes warm initialization
Cold Initialization
_BINITSTATUS holds 3,
1. if system detects any change in the application program. If a new application program is downloaded,
cold start is observed.
2. Destroying of retentive data because of hardware fault.
3. Any related fault in power supply section
4. CoDeSys menu command Online ÆReset Cold
_WCOLDSTARTCOUNTER WORD Read Only Holds number of cold start initialization occurrences. This variable is persistent.
_WWARMSTARTCOUNTER WORD Read Only Holds number of warm start initialization occurrences. This variable is persistent.
_WCURSCANTIME WORD Read Only Holds scan time of last scan (in ms). The value is updated at the end of each scan.
_WMINSCANTIME Holds minimum scan time (in ms) in all previous PLC scans after power ON or warm or cold initialization.
WORD Read Only
The value is updated at the end of each scan.
_WMAXSCANTIME Holds maximum scan time (in ms) in all previous PLC scans after power ON or warm or cold initialization
WORD Read Only
with 1ms resolution.
_WLIMITMAXSCAN This is the maximum limit for scan time. If current scan exceeds this limit, PLC is put in STOP mode and
‘MEM’ LED starts flashing. Default value of limit is 250 ms and it is loaded before logic-scan.
Read /
WORD If user needs change in scan time limit, s/he can modify the value at the beginning of logic scan. Maximum
Write
scan time limit allowed is 1 sec. The new value is applicable for that scan only. Next scan is checked for
default value unless this system variable is modified again to new limit.
____________________________________Page 60 of 106__________________________________
System Variables
____________________________________Page 61 of 106__________________________________
System Variables
User initiated STOP mode command User should put CPU in RUN mode via
4 User Stop
via programming software CoDeSys programming software
User has to find out the cause of invalid
Odd address is assigned to data type
address assignment in application
5 Address error other than BOOL and BYTE. It is
program and download a valid and
indicated by blinking ‘M’ LED.
corrected application program
____________________________________Page 62 of 106__________________________________
System Variables
____________________________________Page 63 of 106__________________________________
System Variables
____________________________________Page 64 of 106__________________________________
Visual Access Window
Nexgenie PLC provides optional Visual Access Window (VAW). It consists of 128 x 64
pixel graphical LCD with backlit and four system keys. VAW is designed to add
functionality and value to Micro size Nexgenie PLC with little cost addition. It provides
the operator interface required for many small size applications. It has very powerful
display and setting capability. However, it is limited if compared with a true HMI.
Programmer should go through the features of PLC and capability of VAW. It can make
wonders and offer cost effective solution to many applications.
• 2”, 128 x 64 graphical LCD with backlight and view size 45 x 27 mm. 4 system keys
for data entry and display navigation
• Supports up to 64 user defined screens
• User can program static text and dynamic text. VAW provides number of special
characters for the effective use of display
• VAW supports different font types: single size, double size and complimentary.
• VAW supports graphical symbols; in-built symbols (about 76 numbers) as well as
custom symbols (16 maximum)
• User can monitor/ modify PLC data with different data types like
o BOOL (TRUE/FALSE text and graphical symbol)
o BYTE, WORD, DWORD, INT, DINT
o TIME is seconds and TIME is minutes
o TIME OF DAY (TOD), DATE and DATE_AND_TIME(DT)
o RTC TIME and RTC DATE
• User can define PLC data attributes like number of digits to be displayed, decimal
point position, display format, maximum and minimum limit and allow modification
selectively
• GoTo object facilitates user to switch to different screens with simple key operations
• There is no virtual limitation on number of PLC data objects (modifiable or non
modifiable) in a screen
• User can provide screen level password (4 digits numerical) to restrict any
unauthorized access to critical parameter settings / screen. VAW supports 4
password levels from 1 to 4 with 4 as higher priority level.
• User can control backlit timeout and adjust display contrast.
• VAW provides built in system menu (even when CPU is in STOP mode due to any
reason).
o To log in, log out and modify password
o For system debug information like CPU status, expansion unit status, RTC
error, etc useful for diagnostics
o To view system information like PLC scan time, current password level logged
in, firmware version
o To monitor input and output status of base as well as expansion units. User
can monitor marker memory bit status also.
o To monitor and set Real Time Clock
o To set VAW related parameters
• VAW screens are defined in PLC application program using simple VAW functions. As PLC
application program contains screen definition, there is no need to maintain separate
program file for VAW.
____________________________________Page 65 of 106__________________________________
Visual Access Window
System Menu is available even when CPU is in stop mode due to any reason. During
source code download / upload, VAW screen is not updated.
Machine_Name ►
Company_Name
DT=2008-04-02
TM=06:24:34
With suitable application program, user can program screens with different
objects, make menu structure for user settings, monitoring screens, etc as per the
application need. Further, user can monitor machine/ process status, provide
guidance to the operators and trigger alarm messages.
VAW can handle PLC data of different data types. User can monitor/ modify timer
delays, counters, temperatures, speed of the machine, production count, machine
running hours and various machine/ process parameters. User can select mode
of operations like auto/ manual selection, start/ stop any sequence, enable/
disable machine accessories. User can schedule and control activities day wise,
week wise dependant on built-in Real Time Clock. User can log alarm data with
time stamp.
All these features are VAW programmer specific.
Note: When user is monitoring System Menu, change in Screen Trigger Word (_STW) via
application program is ignored. To monitor screens triggered by application
program user has to switch to User Home first.
____________________________________Page 66 of 106__________________________________
Visual Access Window
Note: When user is monitoring System Menu, change in Screen Trigger Word
(_STW) via application program is ignored. To monitor screens triggered by
application program, user has to switch to User Home first.
Note: Modification mode is exit automatically, if no key operation is carried out for
30 sec duration.
____________________________________Page 67 of 106__________________________________
Visual Access Window
In this example, from User Home, one can switch to screen number 1 which
provides three settings as
Position ¨
= 350.00 mm
Delay1 =15 Sec
Mode =Manual
In this screen,
Flow chart on next page shows how to switch to this screen and the steps to
modify required data
____________________________________Page 68 of 106__________________________________
Visual Access Window
____________________________________Page 69 of 106__________________________________
Visual Access Window
Position ¨ Position ¨
=+0440.10 mm = -440.10 mm
Delay1 =15 Sec Delay1 =25 Sec
Mode =Manual Mode =Manual
Position ¨ Position ¨
=+0440.10 mm = -440.10 mm
Delay1 =15 Sec Delay1 =20 Sec
Mode =Manual Mode =Manual
Position ¨ Position ¨
=-0440.10 mm = -440.10 mm
Delay1 =15 Sec Delay1 =20 Sec
Mode =Manual Mode =Manual
Key validates
modification and PLC data
Position ¨ Position ¨
= -440.10 mm = -440.10 mm
Delay1 =25 Sec Delay1 =20 Sec
Mode =Manual Mode =Auto
____________________________________Page 70 of 106__________________________________
Visual Access Window
System Menu is available even when CPU is in stop mode due to any reason
User can scroll through system menus using and keys as shown below.
>3 sec
>3 sec
____________________________________Page 71 of 106__________________________________
Visual Access Window
2 sec delay
Log Out_____ _
Press ► key to
LogOut!
After password login, if user does not carry any key operation for 3 minutes
duration, then password is logout automatically.
Use can login one password level at a given time. Whenever user login any
password level, previously login level is logout.
____________________________________Page 72 of 106__________________________________
Visual Access Window
13.2.2 Log In
VAW supports screen level password protection to restrict unauthorized access to
screen or parameters. VAW programmer can program password level for GoTo
object. It provides 4 levels of password protection; from 1 to 4. Fourth level is
highest priority password level. Password is 6 digit numeric password. Default
passwords are as below.
Level Default password
0 No password protection
1 1000
2 2000
3 3000
4 4000
____________________________________Page 73 of 106__________________________________
Visual Access Window
User can navigate through System Menu using and keys. Press key when
cursor is at Z preceding menu Log In. The steps below show how to login
password level 2 assuming that password is 1211 for level 2.
Press key when cursor System Menu_ _► Log In____ ___ Key selects next
is at Z preceding Log In Z1:Log Out Level: 2 digit for modification
menu Z2:Log In PSW : 1***
Z3:System Info
User can modify individual Log In___ ____ Log In___ ____
digit. Selected digit is Level: 2 Level: 2
displayed and all other PSW : 0*** PSW : ***0
digits are masked by *. Curr Login : 0 Curr Login : 0
Note: User can press key momentarily to escape from modification mode.
____________________________________Page 74 of 106__________________________________
Visual Access Window
Log In_____ __
Level: 2
PSW : ***1
Curr Login : 0
When password is entered and key
is pressed,
‘LogIn Done!’ Message is displayed
momentarily if password is matched
Log In_____ __
else
Level: 2
‘LogIn Failed!’ message is displayed
PSW : ****
LogIn Done!
2 sec delay
Log In_____ __
Level: 2
PSW : ****
Curr Login : 2
____________________________________Page 75 of 106__________________________________
Visual Access Window
____________________________________Page 76 of 106__________________________________
Visual Access Window
13.2.4 I Monitor
User can navigate through System Menu using and keys. Press key when
cursor is at Z preceding menu I Monitor. VAW displays following screen.
User can modify first input address displayed by pressing key directly. User can
scroll between input address 0 to maximum number of input bytes supported by
respective PLC model as shown below.
Input Monitor_
IB00:10100001
IB01:11100000
765 43210 ▲
Input Monitor_
At any stage, if key is pressed
Input byte addresses IB01:11100000
when cursor is at ▲, then screen
are changed IB02:00000001
switches to System Menu screen
765 43 210 ▲
Input Monitor_
IB02:00000001
IB03:10101001
765 43 210 ▲
____________________________________Page 77 of 106__________________________________
Visual Access Window
Instead of scrolling i.e. by pressing key , user can modify input address directly.
The steps below show how to modify input address from %IB00 to %IB05.
When user is in I Monitor menu, user can modify first input address directly. In
modification mode and keys act as Digit Increment and Next Digit keys
respectively.
If user modifies input address, which is greater than maximum number of input
bytes supported by PLC, then address becomes 0.
System remembers modified input address (by scrolling or directly) as long as
PLC is powered ON. Whenever user enters into I Monitor menu again, user can
monitor input byte with previously monitored input address.
____________________________________Page 78 of 106__________________________________
Visual Access Window
13.2.5 Q Monitor
User can navigate through System Menu using and keys. Press key when
cursor is at Z preceding menu Q Monitor. VAW displays following screen.
System Menu__ ►
Z4:I Monitor
Z5:Q Monitor
Z6:M Monitor
User can modify first output address displayed by pressing key directly. User
can scroll between output address 0 to maximum number of output bytes
supported by respective PLC model as shown below.
Output Monitor
QB00:11000000
QB01:10000011
76543210
▲
Output Monitor
At any stage, user can press key
Output byte addresses QB01:10000011 for > 3 sec duration to switch to
are changed. QB02:00100001 System Home
765 43 210
▲
At any stage, if key is pressed
when cursor is at ▲, then screen
switches to System Menu screen
Output Monitor
QB02:00100001
QB03:11110000
765 43 210
▲
Instead of scrolling i.e. by pressing key, user can modify output address
directly. User can modify output address for e.g. from %QB00 to %QB06 just like
any PLC data. For the same refer chapter 13.2.4 I Monitor.
____________________________________Page 79 of 106__________________________________
Visual Access Window
13.2.6 M Monitor
User can navigate through System Menu using and keys. Press key when
cursor is at Z preceding menu M Monitor. VAW displays following screen.
System Menu_ _►
Z4:I Monitor
Z5:Q Monitor
Z6:M Monitor
Address of Marker
byte. User can modify it Bit wise status as 0/1
Marker Monitor can be monitored
2 consecutive marker bytes 0000:00000110
are monitored in a screen 0001:10100001 This bit 0 i.e. %MX1.0
76543210 ▲
This bit 7 i.e. %MX1.7
User can modify first marker address displayed by pressing key directly. User
can scroll between marker address 0 to maximum number of marker bytes
supported by respective PLC model as shown below.
Marker Monitor
0000:00000110
0001:10100001
7654 3210
▲
Instead of scrolling i.e. by pressing key , user can modify marker address
directly. User can modify marker address for e.g. from %MB0000 to %MB2000
just like any PLC data. For the same refer chapter 13.2.4 I Monitor.
____________________________________Page 80 of 106__________________________________
Visual Access Window
13.2.7 Clock
User can navigate through System Menu using and keys. Press key when
cursor is at Z preceding menu Clock. Screen displays current time and date.
User can modify time and date, and the steps below shows how to change
e.g. time from 13 hours 37 minutes 25 seconds to 10 hours 45 minutes 25
seconds
System Menu__ ►
Z7:Clock
Z8:PSW Modify
Z9:VAW Setup
Tm=13:37:25 Tm=10:47:25
hh:mm:ss hh:mm:ss
Dt=2009-01-30 Dt=2009-01-30
yyyy-mm-dd ▲ yyyy-mm-dd ▲
Tm=10:37:25 Tm=10:45:25
hh:mm:ss hh:mm:ss
Dt=2009-01-30 Dt=2009-01-30
yyyy-mm-dd ▲ yyyy-mm-dd ▲
At any stage, if key is
pressed when cursor is
at ▲, then screen
switches to System
Tm=10:45:25 Menu screen
hh:mm:ss
Dt=2009-01-30
yyyy-mm-dd ▲
____________________________________Page 81 of 106__________________________________
Visual Access Window
Clock screen shows current time and date. User can modify time and date, and
the steps below shows how to change
e.g. date from 30th Jan 2009 to 20th Feb 2009
Tm=10:45:25 Tm=10:45:25
hh:mm:ss hh:mm:ss
Dt=2009-01-30 Dt=2009-02-30
yyyy-mm-dd ▲ yyyy-mm-dd ▲
____________________________________Page 82 of 106__________________________________
Visual Access Window
System Menu_ _►
Z7:Clock
Z8:PSW Modify
Z9:VAW Setting C
Level : 1 Level : 3
CurPSW: **** CurPSW: ****
NewPSW: **** NewPSW: ****
CnfPSW: **** ▲ CnfPSW: **** ▲
Level : 1 Level : 3
CurPSW: **** CurPSW: 0***
NewPSW: **** NewPSW: ****
CnfPSW: **** ▲ CnfPSW: **** ▲
Level : 2 Level : 3
CurPSW: **** CurPSW: 1***
NewPSW: **** NewPSW: ****
CnfPSW: **** ▲ CnfPSW: **** ▲
Level : 3 Level : 3
CurPSW: **** CurPSW: 2***
NewPSW: **** NewPSW: ****
CnfPSW: **** ▲ CnfPSW: **** ▲
E
Level : 3 Level : 3
CurPSW: **** CurPSW: 3***
NewPSW: **** NewPSW: ****
CnfPSW: **** ▲ CnfPSW: **** ▲
____________________________________Page 83 of 106__________________________________
Visual Access Window
Level : 3 Level : 3
CurPSW: *0** CurPSW: ****
NewPSW: **** NewPSW: **0*
CnfPSW: **** ▲ CnfPSW: **** ▲
Level : 3 Level : 3
CurPSW: **0* CurPSW: ****
NewPSW: **** NewPSW: ***0
CnfPSW: **** ▲ CnfPSW: **** ▲
Level : 3
C
CurPSW: ****
NewPSW: 0***
CnfPSW: **** ▲
Level : 3
CurPSW: ****
NewPSW: 1***
CnfPSW: **** ▲
Level : 3
CurPSW: ****
NewPSW: *0**
CnfPSW: **** ▲
____________________________________Page 84 of 106__________________________________
Visual Access Window
Level : 3 Level : 3
CurPSW: **** CurPSW: ****
NewPSW: **** NewPSW: ****
CnfPSW: 0*** ▲ CnfPSW: ***0 ▲
Level : 3
CurPSW: ****
NewPSW: **** Password N
CnfPSW: *0** ▲ Confirmed?
Y
Level : 3 Level : 3 Level : 3
CurPSW: **** CurPSW: **** CurPSW: ****
NewPSW: **** NewPSW: **** NewPSW: ****
CnfPSW: **0* ▲ PSW Modified Failed
Level : 3
CurPSW: ****
E
NewPSW: ****
CnfPSW: **** ▲
If new password programmed as 0000 is not accepted and old password value is
maintained.
____________________________________Page 85 of 106__________________________________
Visual Access Window
BackLitTimeOut
By default, backlit timeout Backlit timeout can be set
05 Minutes
is 5 minutes from 0 to 99 minutes
ContrastAdjust
By default, LCD contrast 29 ▲
is set to 29 LCD contrast can be
adjusted from 20 to 40
In menu VAW Setup, user modify backlit timeout (0 to 99 minutes) and adjust
LCD contrast (from 20 to 40).
LCD is provided with white backlit. Typical backlit life is 10,000 hours. To save
backlit life, it is switched OFF when VAW is not in use i.e. any key is not pressed
for certain time duration (in minutes) defined by system variable
_BACKLITTIMEOUT. By default, _BACKLITTIMEOUT value is 5 minutes. User
can modify this value from 0 to 99 minutes. If modified as 0, backlit is never
turned OFF by the system.
LCD is provided with contrast adjustment feature. LCD contrast is set via system
variable _LCDCONTRAST. By default, _ LCDCONTRAST value is 29. User can
modify this value from 20 to 40.
Both modified values are remembered permanently.
____________________________________Page 86 of 106__________________________________
Updating Operating System
After executing bootstrap.exe file, main dialog box gets invoked as shown below –
Comm Port: This is a combo box that facilitates selection of desired COM port of the
PC for communication with PLC.
PLC: This is a combo box that facilitates selection of desired PLC for which the OS is
to be updated. For Nexgenie PLC, the selected PLC type shall be ‘Nexgenie’.
File: This is an edit field, which indicates the selected file name for the CPU OS. The
file name is indicated along with its path.
Browse: Click on this button invokes the “File open” dialog with default file type as
“.bin”. User can browse through folder list and select the required binary file for
particular OS version. After selecting the file, click on “Open” button to close the
dialog. The selected file name is then displayed in “File” field, as explained above.
Erase Selection: This section has check boxes to select the erasing options during
OS updating. User has option to selectively erase “User Ladder Code” (application
program code) and “User Source Code” (application program source code) before
downloading the OS.
User source code is not erased even though option is checked.
Update OS: With click on this button, the sequence of operations for updating
existing OS is initiated. In order to update the OS, the DIP switch positions on CPU
PCB need not be changed. DIP switch positions should be in same position as that of
normal operation of the PLC.
New OS: Available only for Messung authorized servicing personnel.
Exit: Click on this button will terminate the bootstrap utility.
____________________________________Page 87 of 106__________________________________
Updating Operating System
File
Online
Under ‘Online’ menu, commands ‘New OS’, ‘Update OS’ and ‘Erase’ are provided –
After downloading the OS in “Update OS” mode, the system gets reset and if the
application program code is erased (“User Ladder Code” option is checked), then ‘MEM’
LED becomes on. The normal operation of the Nexgenie can be resumed after
downloading a valid application program through CoDeSys. If application code is not
erased (“User Ladder Code” option is un-checked), then CPU goes in RUN mode and
starts execution.
____________________________________Page 88 of 106__________________________________
Memory Cassette
15 Memory Cassette
The memory cassette is used to store the application program code and the source
code. So the application program can be transported easily and then can be transferred
to CPU without need of programming software. This is a flash type of intelligent memory
cassette. PC based PLC programming software ‘CoDeSys’ can download the
application program code and or source code to the cassette. ‘CoDeSys’ can upload the
source code from the cassette when ever required. The figure below shows the memory
cassette interfaced on serial port1.
The front side provides a push button and two LED indications for the user interface.
The backside provides 9-pin D female connector for the interface with the PC/ PLC. The
table below illustrates the cassette and related accessories ordering codes.
Before downloading the application program to the cassette, the cassette need to be set
using the PC based software ‘Memory Cassette Configuration Utility’. The subsequent
discussion explains how to set / configure the cassette for a particular PLC type and the
application program transfer related to the cassette.
____________________________________Page 89 of 106__________________________________
Memory Cassette
To set the memory cassette, cassette adapter kit is required. It consists of two items.
1. Cassette adapter – It has two 9-pin D male connectors at the both ends. One
end is connected to PC using programming cable 1910 and other end to the
cassette. It provides one socket to connect 5 VDC externally to power up the
memory cassette.
2. 5 VDC power supply unit – It is 230 VAC to 5 VDC converters, which can be
directly mounted on 3-pin 230 VAC socket and provides 5 VDC through 1-pin
jack.
The figure below shows the entire set up.
to 230 VAC
Run Memory Cassette Configuration Utility.exe, The Menus ‘Settings’ and ‘Cassette’
are related to the memory cassette.
Settings
Menu command Setting Æ Comm Port,
selects PC communication port number
____________________________________Page 90 of 106__________________________________
Memory Cassette
Cassette
In the menu Cassette, the cassette
can be set and the configuration of
the cassette can be read. This menu
provides various options as shown in
the screen below.
Set PLC
Click on ‘Set PLC’ to set the memory cassette for the PLC type already selected.
With the commands, first connection with the cassette is established displaying the
message ‘Checking Cassette’.
Once the connection is established and the cassette is set correctly, the message
‘PLC is set’ is displayed.
Then the flash PROM is erased displaying message ‘Erasing Flash PROM……’. It
takes few seconds to erase the entire flash PROM and after erasing, the message
‘Cassette is erased’ is displayed.
Erase Code Area
With the command ‘Erase Code Area’, the application program code and source code
is erased in flash PROM. During this period, the message ‘Erasing Flash PROM……’
is displayed. After erasing, the message ‘Cassette is erased’ is displayed.
Read PLC Name
With the command ‘Read PLC Name’, PLC type already set for the cassette is
displayed. The message ‘PLC is <PLC type>’ is displayed.
Read Configuration
With the command ‘Read Configuration’, the cassette information is displayed as:
• Cassette size – Displays cassette size as per memory cassette type.
• PLC type – Displays PLC type already set for the cassette.
• Cassette OS version – Displays memory cassette OS version.
• Ladder code status – Displays the status of application program code as blank
or Invalid or valid. If code is valid, it displays the size of the code
• Source code status –Displays the status of application program source code as
blank or Invalid or valid. If code is valid, it displays the size of the code.
The relevant error messages are displayed if the cassette physical interface or serial
communication with the PC is not healthy. The status of the application program code
is indicated by two LEDs provided on the front side of the cassette.
LED
Status
Green Red
Blinking OFF Application program code is blank.
ON OFF Application program code is valid.
OFF ON Application program code is invalid
Once the cassette is set, the programming software ‘CoDeSys’ can download the
application program codes and source codes.
____________________________________Page 91 of 106__________________________________
Memory Cassette
If the cassette is set properly and the connection is established, relevant dialog box
will pop up. Press button ‘Yes’ to download the application program code
While downloading the code to the cassette, the message box displays the total size
of the code as shown below. While downloading the code, green LED on the cassette
flickers with high frequency.
If a valid or invalid code is already present in the cassette, when download is initiated,
Red LED on the cassette flickers for 3-4 seconds and ‘CoDeSys’ logs out displaying
the error message “Communication error (#0): logout Performed”. When entire code
is downloaded, the dialog box pops up as shown below.
Here, press any button to complete the downloading process and hence login
process. After successful download, green LED on the cassette stops flickering and
starts blinking indicating valid application program code in the cassette.
The application program source code can be downloaded to the cassette using
command Online Æ Source code download once login is complete. This command
starts downloading the source code and the status is displayed as shown.
____________________________________Page 92 of 106__________________________________
Memory Cassette
While downloading the source code, green LED on the cassette flickers with low
frequency. It stops flickering after successful download
If communication is not established between the cassette and ‘CoDeSys’ the error
message “Communication Error (#0): Logout Performed” is displayed. The cause can
be problem in physical connection or the previous application program code is not
erased completely.
If user tries to download the source code without erasing source code area, the error
message “Error received to last online service!” is displayed. In this case, red LED on
the cassette flickers with high frequency for 3-4 seconds.
The valid application program source code can be uploaded from the memory
cassette using ‘CoDeSys’. The command ‘File’ Æ ‘Open’ Æ ‘PLC’ uploads the entire
source code from the cassette.
____________________________________Page 93 of 106__________________________________
PLC Instructions Performance
The tables in this chapter provide execution time and program memory consumption
of various PLC instructions
____________________________________Page 94 of 106__________________________________
PLC Instructions Performance
____________________________________Page 95 of 106__________________________________
PLC Instructions Performance
Switch OFF the power to PLC before doing any changes in the connections.
Self Test
The Nexgenie is designed for working in industrial environment and does not require
regular maintenance.
The processor, during the power ON and during the normal course of Program
execution, continuously carries out specific self tests to ensure the healthy and
trouble free operation of the PLC. In case processor detects any fatal error in the PLC
hardware, depending upon the type of error, it either generates some alarm signals
for user program or goes in STOP mode to avoid any accident onto automated
system. The result of these tests are displayed or indicated by the LEDs .The status
of the indications enable operator to diagnose the cause of the failure and take the
appropriate action.
The trouble shooting guidelines and LED indications refer chapter 3.2.5 for base unit
and chapter 3.3.2 for expansion unit.
____________________________________Page 96 of 106__________________________________
MESSUNG SYSTEMS
EL – 2, J - Block, MIDC, Bhosari,
PUNE – 411 026. INDIA
Tel. – (+91) – 020 – 27102000
Fax. – (+91) – 020 – 27102100
Nexgenie PLC User Manual
Document No. ED‐2009‐126 Ver. 1.6