Samsung NX7 Manual
Samsung NX7 Manual
User Manual
Important User Solid state equipment has operational characteristics differing from
those of electromechanical equipment. Because of these differences,
Information and also because of the wide variety of uses for solid state equipment,
all persons responsible for applying this equipment must satisfy
themselves that each intended application of this equipment is
acceptable.
In no event will Rockwell Samsung Automation be responsible or
liable for indirect or consequential damages resulting from the use or
application of this equipment.
The examples and diagrams in this manual are included solely for
illustrative purposes. Because of the many variables and requirements
associated with any particular installation, Rockwell Samsung
Automation cannot assume responsibility or liability for actual use
based on the examples and diagrams.
No patent liability is assumed by Rockwell Samsung Automation. with
respect to use of information, circuits, equipment, or software
described in this manual.
Reproduction of the contents of this manual, in whole or in part,
without written permission of Rockwell Samsung Automation. is
prohibited.
Throughout this manual we use notes to make you aware of safety
considerations.
1. Introduction............................................................... 9
Features.......................................................................................................... 9
Installation Environment ............................................................................ 11
2. System Configuration ............................................. 13
System Configuration ................................................................................. 13
Digital Expansion I/O Configurations ........................................................ 14
NX7 Product List.......................................................................................... 15
Hardware Features ...................................................................................... 16
3. Specifications.......................................................... 17
General Specifications ................................................................................ 17
Power Supply Specifications...................................................................... 17
Performance Specifications........................................................................ 18
Input Specifications..................................................................................... 19
Output Specifications.................................................................................. 20
Communication Specifications .................................................................. 22
Installation and Wiring................................................................................ 23
Status LEDs.................................................................................................. 26
4. Addressing and Operation....................................... 29
Addressing Space ....................................................................................... 29
Bit and Word Addressing ........................................................................... 30
Double Word Addressing ........................................................................... 31
l/O Addressing ............................................................................................. 33
Special Internal Addresses ......................................................................... 35
Special Register (SR) Area.......................................................................... 39
Timer/Counter Area..................................................................................... 43
Absolute Addressing................................................................................... 45
Processor Operation Mode......................................................................... 46
3
5. Programming Instructions....................................... 49
Basic Sequence Instructions ...................................................................... 49
Timer, Counter and Shift Register Instructions ........................................ 50
Comparison Instructions ............................................................................ 51
Substitution, Increment and Decrement Instructions .............................. 51
Arithmetic Instructions ............................................................................... 52
Logical Instructions ..................................................................................... 53
Rotation Instructions................................................................................... 53
Word Conversion Instructions ................................................................... 54
Bit Conversion Instructions ........................................................................ 55
Move Instructions........................................................................................ 56
Program Control Instructions ..................................................................... 57
System Control Instructions....................................................................... 58
6. Special Functions .................................................... 59
High-Speed Counter Input Function .......................................................... 59
Input Pulse Catch Function......................................................................... 65
Pulse Output Function (for Transistor Output Model) ............................. 66
Appendix - Using WinGPC ............................................ 71
Wiring and Switch Settings........................................................................ 71
Going Online with WinGPC ........................................................................ 73
Programming and Downloading ............................................................... 76
Program Monitoring ................................................................................... 77
PLC Diagnostics........................................................................................... 79
Using a Password........................................................................................ 81
4
Before You Start
Welcome to the user manual for OE MAX NX7 series programmable
logic controller.
N Please read this manual thoroughly and familiarize yourself with
the directions before using the product to ensure normal operation
and your safety.
N Please check that the product is what you ordered and there are no
damaged or missing parts in the package.
N Make sure to perform initialization (refer to) Initialization on page
73, Appendix if you use the product for the first time. Ensure that
the built-in battery is connected before using the product.
5
Safety Instructions
Please read this manual and the related documentation thoroughly
and familiarize yourself with the directions before installing, operating,
performing inspection and preventive maintenance. Make sure to
follow the directions correctly to ensure normal operation of the
product and your safety.
N When designing a system using this product, consider proper
prevention against external environmental fluctuations, power
failure and noise, etc., in accordance with installation
requirements. Design and implement an external circuit that
allows your system to operate continually and safely in any system
failure.
N Make sure to disconnect the external power to the product before
performing mounting, wiring, inspection, maintenance and
cleaning. Never touch the power terminal when the power is on.
Otherwise, it may cause an electrical shock.
N Do not connect AC-powered products to a DC I/O terminal. Do not
connect externally- powered products to an internal 24V DC output
terminal.
N If you need to perform a special operation during run, such as
program editing, operation control or forced output, make sure to
perform it after ensuring safety.
N Do not connect an external device or a hand-held programmer
(HHP) that uses internal power to the product when running. Make
sure to stop the system and ensure safety before connecting them.
N Make sure to use an external device to PLC when configuring the
protective circuit breakers for emergencies.
N When the self-diagnostics functionality detects an error, such as
internal arithmetic error, watchdog time error, and/or connection
failure, power continues to be provided to the controller’s power
supply so that your system still works. Design and configure the
circuits so that your system runs safely under those conditions.
N The internal 24V DC power supplied to the circuits inside the PLC
may have voltage fluctuations, depending on the volume of load.
These voltage fluctuations may cause malfunction of the PLC or I/O
devices connected. Therefore, use the internal power within the
allowed rating.
N Do not apply an impact to the terminal blocks or the product itself
when the power is on. Otherwise, it may cause malfunction and
failure of the product, or electrical shock.
6
N Operate and keep the product under the allowed conditions
directed in product specifications. During installation, be sure that
all debris (metal chips, wire stands, etc.) is kept from falling into
the product.
Do not expose the product to high temperature, high humidity,
dusty conditions, salt, metal chips, corrosive gas, inflammable gas,
solvents, abrasive oil, and/or direct sunlight.
Avoid vibrations and crashes with other objects. Otherwise, it may
cause a fire, damage, malfunction or aging to the product.
N Fix cables as directed in the wiring instructions. We recommend
you do not connect the line to the terminals marked with the
symbol 'N'.
N When wiring with the terminal block, use the following specifications:
Screw: 3.0 M, Torque: 0.5 N . m (5 kgf . cm)
Terminal width: 6.35 mm or less (0.25 in)
N Input/output and communication cables should be separated from
power cables. Give at least 200 mm space between them.
Otherwise, generated noise may cause product malfunction.
N We recommend installing an insulation transistor near the front of
the PLC. Make sure to use twisted cables to prevent input noise.
N For frame grounding, perform class 3 grounding at 100Ω or less
ground resistance or independent class D grounding using a
2mm2. Do not perform common grounding to high voltage
devices.
N Do not disassemble or remodel the product. If you need to repair
the product, contact the service center.
N This manual does not include detailed explanation on all of the
instructions and functions supported by the product. Please refer
to other related manuals for more information.
N Use the product only for the purposes stated on the product or in
this user manual.
N When disposing the product, make sure to follow your local
regulations and guidelines on industrial waste disposal.
7
8
1
Introduction
Features
Small footprint and optimized functions
The NX7 PLC has a small footprint and is optimized to meet your
environmental needs for control.
N Designed optimally for micro to small scale applications that
require up to 104 control points. Base 28 or 48 control points are
provided by default. An expansion module provides 28 points and
up to 2 expansion modules can be mounted. Therefore, max. 104
points (48 base points + 2 X 28 expansion points) are available.
N Improves system productivity since major functions such as PID
(proportional integral differential) control, high-speed counter,
pulse output, and pulse catch are embedded in the processor
module.
N Provides one-to-many data exchange and two built-in
communication ports, which enables your PLC system to connect
directly to a touch screen and exchange large volume data at high
speed.
Compatibility of peripherals
Supports backward compatibility with the existing programming
device (WinGPC), which allows easier programming, CPU state
checkups, forced input/output, input/output monitoring, and program
download and upload.
9
Two built-in communication ports
2 built-in communication ports allow easy connection to computers
and peripheral devices without additional communication modules.
Self-diagnostics
The convenient self-diagnostics function makes your system
diagnostics and troubleshooting easier.
10
Installation Environment
ATTENTION Do not install your PLC system under the following
conditions:
• Ambient temperature outside the range of 0 to 55
°C
(32 to 131 ° F).
• Direct sunlight.
• Humidity outside the range of 20 to 90% (non-
condensing).
• Chemicals that may affect electronic parts.
• Excessive or conductive dust, or salinity.
• High voltage, strong magnetic fields, or strong
electromagnetic influences.
• Direct impact and excessive vibration.
• Organic solvents or cutting oil.
• Corrosive gas.
ATTENTION
Follow these directions to prevent your PLC system
from malfunctioning:
• Use an isolation transformer and noise filter on the
incoming power to your controller system if there
are any high capacity equipment, high voltage or
strong electromagnetic influences nearby.
• Separate the main PLC grounding from all the
groundings of other equipment. Make sure to use
class 3 grounding.
• Make sure to use the external 24V dc power
provided inside the NX7 module within the allowed
ratings.
• Familiarize yourself with the PLC instructions and
then design and implement your programs to
ensure that system fault or malfunction is not
caused by program error.
• Perform preventive maintenance to your PLC
system, and inspect equipment and wiring status
periodically. Make sure to ensure safety before
operating your PLC system.
11
12
2
System Configuration
System Configuration
PWinGPC
version 3.5 or higher
13
Digital Expansion I/O Configurations
28 points
56 points
84 points
48 points
76 points
104 points
14
NX7 Product List
Base module
Catalog
Input power I/O specifications Remarks
number
NX7-28ADR 16-point dc input/12-point relay output
Expansion module
Catalog
Input power I/O specifications Remarks
number
16-point 24V dc input
NX7-28EDR 16-point dc input/12-point relay output 12-point relay output
2A per point
16-point 24V dc input
16-point dc input/12-point transistor
NX7-28EDT 12-point transistor output
output
4A per point
Programming software
Programming
Catalog number Specifications Remarks
software
Allows you to perform the following tasks on a
remote computer:
WinGPC 3.7 PLC program editing and monitoring, file For Windows
-
(Windows) management, program backup, online editing, error 98/2000/NT/XP
and status check-up, network status check-up, I/O
mapping, time chart monitoring
Cables
Item Catalog number Specifications Remarks
15
Hardware Features
Status LEDs
LED Description
On when processor is in operation.
RUN
Flashes when processor is pausing.
On when the program can be
PROG
modified or downloaded.
On when processor fault is detected.
ERR Flashes when the battery is not
installed or needs to be replaced.
On when power is supplied
COM1 normally.
COM2 Flashes when communication is
progressing via the port
IMPORTANT The baud rate is automatically detected and adjusted within the range of 4800 to
38400 bps. No separate speed setting is required. Once a speed is assigned, it is
maintained until there is no communication for more than one minute. Then,
the speed is automatically detected and configured again.
The termination resistance is connected to the end of the communication line to
remove mutual communication interferences or signal distortions that can occur
between connected controllers and peripherals.
Use an external connector for termination for COM2 port (See Appendix.)
16
3
Specifications
General Specifications
Item Specifications
Operating 0 to 55 ° C
Temperature
Storage -20 to 70 ° C
Humidity Operating 10 to 90% RH (Non-condensing)
1500V ac for 1 minute between external terminal (ac) and frame ground (FG)
Withstand voltage
500V ac for 1 minute between external terminal (dc) and frame ground (FG)
Allowed momentary power
20 ms or less
failure
Noise immunity 1500 Vp-p pulse width 50 ns, 1 µ s (generated by noise simulator)
Insulation resistance 10 M Ω
Vibration immunity 10 to 55 Hz /1 min, amplitude 0.75 mm, each direction of X, Y, Z for 10 min
Dust condition No conductive dust
Chemicals No cutting oil and organic solvents
Corrosive gas No corrosive gas
Shock immunity 98m/S2 or more, 4 times X, Y, Z each direction
Grounding Class 3 grounding (100 Ω or less)
Case material PC/ABS
Cooling method Natural air cooling
Environ ment IP20
17
Performance Specifications
Processor 28ADR/DDR/ADT/DDT, 48ADR/DDR/ADT/DDT
Control method Stored program, cyclic operation
Base 28/48 points. 28 expansion points. Expandable to max. two
External Input/output
expansion modules
Basic 28 types
Instructions
Advanced 139 types
Processing Basic Several µs per step
speed Advanced Several to several tens of µs per step
Program capacity 9k words
I/O (R) R000.00 to R31.15 (512 points, 32 words)
Special internal contact
R032.00 to R127.15 (1436 points, 96 words)
(R)
Link contact (L) L000.00 to L063.15 (1024 points, 64 words)
Internal contact (M) M000.00 to M127.15 (2048 points, 128 words)
Keep contact (K) K000.00 to K127.15 (2048 points, 128 words)
Memory size Special contact (F) F000.00 to F015.15 (256 points, 16 words)
256 channels (Timer + Counter), Set value range: 0 to 65535
Timer/Counter Timer: 0.01 Second: TC000 to TC063 (64 Channels)
(TC or TIM) 0.1 Second: TC064 to TC255 (192 Channels)
Counter: TC000 to TC255 (256 channels)
Data register (W) W0000 to W2047 (2048 words)
Special register (SR) SR000 to SR511 (512 words)
Speed 9600, 19200, 38400, 4800 bps, automatically selected
Port1: RS232/RS485, 9-pin female D-SUB
Port
Port2: RS232/RS485, 8-pin modular terminal
Communications
Number of ports 2 ports
2 of 4 step communications protocol (Port 1 and 2)
Supporting functions
User-defined communications, Modbus slave (Port 2)
High-speed counter 1 channel/32 bits built-in, single phase 8K, two-phase 4K
Special functions Pulse output 2 channels built-in (TR output model) 5 KHz
Input pulse catch 4 contacts built-in
RTC Built-in
Others
PID Supports 8 loop PID control
Programming
Programming S/W WinGPC
Tools
Memory backup Battery backup, Backup using flash ROM
18
Input Specifications
Item DC input
Input type DC voltage
Insulation method Photocoupler
Rated input voltage 12 to 24V dc
Voltage range 10.8 to 26.4V
Max. input current 10 mA or less
Min. On voltage/current 10.0V or more/3.0 mA or more
Max. Off voltage/current 5V or less/0.6 mA or less
Input impedance Approx. 3.6 K
Respons Off →On 2 ms or less
e time On →Off 2 ms or less
Internal current consumption 50 mA or less at 5V
Polarity None
Common method 8 points per common or 16 points per common
Status display LED
External connection method Terminal block (M3.0), terminal width: 6.4 mm or less
Recommended wire size 0.5 to 1.25 mm2
Note
Note
IMPORTANT Use of 2-wire sensor may need an additional circuit configuration so that total
current consumption does not exceed the allowable current consumption.
19
Output Specifications
Item Relay output module
Catalog number 28xxR for relay output 48xxR for relay output
Output points 12 points 20 points
Insulation method Relay insulation
Rated input voltage 250V ac, 30V dc
Load voltage range 85 to 264V ac, 10 to 30V dc
Max. load current 2A per point. 6A per common (for 6 points)
Response Off →On 10 ms or less
time On →Off 10 ms or less
Surge absorber Not applicable
Internal current consumption 300 mA or less at 5V 500 mA or less at 5V
Common method 1, 4, and 6 points per common
Status display LED
External connection method Terminal block (M3.0), terminal width: 6.4 mm or less
Recommended wire size 0.5 to 1.25 mm2
Vcc OUT 2A
LOAD
COM 5 to 30V dc
100/200V ac
20
Item Transistor output
Catalog number 28xxT for transistor output 48xxT for transistor output
Output points 12 points 20 points
Insulation method Photocoupler
Rated load voltage 12 to 24V dc
Load voltage range 10 to 30V dc
Polarity - common (Sink type, NPN)
Max. load current 0.4A per point, 1.0A per common
Max. inrush current 3A, 10 ms or less
Off state leak current 100 uA or less
Off →On 1 ms or less
Response time
On →Off 1 ms or less
Internal current consumption (5V) 80 mA or less
Common method 1, 4, and 6 points per common
Status display LED
External connection method Terminal block (M3.0), terminal width: 6.4 mm or less
Recommended wire size 0.5 to 1.25 mm2
60 to
OUT 200mA
24V dc Int’
Power LOAD
Vcc
10 to 30V dc
COM
Int’ OV 10 to 30V dc
10 to 30V dc
21
Communication Specifications
Status LED
(Flashes during communication)
RS232/RS485 Termination
selector switch resistence setting switch
1 NC
No Signal
2 TXD
1 485+
3 RXD
2 485-
4 RTS
3 485+
5 GND
4 485-
6 485-
5 Reserved
7 485+
6 Signal GND
8 CTS
The terminals #1 and #3, and #2 7 232C/RXD
9 Vcc
and #4 are connected internally, 8 232C/TXD
respectively
IMPORTANT Use NX_CBLCPU2 or NX_CBLCPU5 cable from your personal computer's serial
port to COM1 port. See Appendix, Using WinGPC Using WinGPC for more
information about wiring.
22
Installation and Wiring
Installation precautions
23
Product dimensions
* 28 points (base and expansion)
100 mm 79.0 mm
35 mm DIN rail
mounting holder
90 mm
76.6 mm
* 48 points
146 mm
90 mm
100 mm 146.0 mm
Φ 4.2
10.0
81.0 mm
(31.9 in) 126.0 mm
(4.96 in)
87.0 mm 87.0 mm
(3.43 in) (3.43 in)
9.5 10.0
1.5
3.0 3.0
24
Installation space
Allow at least 2 inch (50 mm) space on all sides of the controller
system for adequate ventilation, as shown in the figure below.
up
Left Right
Down
25
Power supply wiring
Make sure to connect to the controller system a stable power that has
voltage fluctuations within 10% deviation from the rated input voltage.
The frame ground terminal must be grounded with Class 3 (100Ω or
less of ground resistance) or Class D grounding to prevent voltage
mixing between the frame ground and the power input terminals.
* If the secondary side of the isolation transformer and the noise filter is too far from the
controller system and noise becomes excessive, it does not have any significant effect.
Status LEDs
The following figure shows the LEDs indicating PLC status:
Input LEDs
Processor LEDs
Output LEDs
Processor LEDs
Five LEDs are used to indicate processor status:
RUN is On when the processor is operating normally. Flashing
indicates that the processor is pausing. Pause means that input/output
is being progressed or the processor retains data.
PROG is On when the program in the processor module can be
edited.
ERR is On when a processor error occurs or operation cannot
proceed due to an abnormal program. Flashing indicates that a battery
is not installed, or a minor error that does not hold processor
operation has occurred.
COM1 flashes when communications are proceeding normally
through COM1 port (9-pin D-Sub).
COM2 flashes when communications are proceeding normally
through COM2 port (MJ).
26
Input LEDs
For 28-point controller, the top input LEDs show the status for R000
input word. The bottom input LEDs show the status for R001 input
word.
For 48-point controller, the top input LEDs show the status for R000
and R001 input words. The bottom input LEDs show the status for
R002 and R0003 input words.
Output LEDs
The top output LEDs show the status for R016 output word. The
bottom output LEDs show the status for R017 output word.
27
28
4
Addressing and Operation
Addressing Space
All the memory used for external I/O processing and internal data
processing has always both address and data (the content).
Addressing space is classified as R, L, M, K, F, W, TC, SV, PV, and SR.
These letters are used to designate a specific area in memory as
shown in the following table.
29
Bit and Word Addressing
A bit address is composed of a character (R, L, M, K, F) that identifies
the type of memory area, a 3-digit decimal number(000 to 127) that
indicates a word, and a 2-digit decimal number(00 to 15) that indicates
a bit. A timer/counter contact is represented by the label TC followed
by 3-digit decimal like TC000. The 3-digit decimal indicates a timer/
counter channel number from TC000 to TC255.However, the hand-held
programmers (HHP) PGM-10, 12S and 300A use the label TIM instead
of TC. For example, TIM000 is used instead TC000 to address the first
timer/counter channel.
A word address is composed of a character(R, L, M, K, F, W, SV, PV, SR)
that identifies the type of memory area, and a 4-digit decimal number
(0000 to 2047) that indicates word. Special registers SR000 to SR511
can be represented as W2560 to W3071.
Both of bit and word addresses can be used to address the memory
areas of R, L, M, K, F. However, be cautious that instructions use a
specific type of address, either bit or word address, and the used
addresses are resolved automatically depending on the type of
instruction.
Bit address can have the content of either On (1) or Off (0) state. Word
address is composed of 16 bits and holds a data value from 0 to
65,535. Double word address is composed of 32 bits and holds a data
value from 0 to 4,294,967,295.
Addressing example
M 123 . 12
Bit number
2-digit decimal number from 00 to 15
Point
Distinguishes word address from bit address.
Word number
When used with bit number, 3-digit decimal number (000 to
127) is used.
When only word number is used, 4-digit decimal number
(0000 to 3071) is used without bit number.
Address Type
Depending on the type of memory area that the address
references, one of R, L, M, K, F, W, SR, SV, PV, and TC is
used.
NOTE Whether an instruction uses bit address or word address depends on instruction type. Commonly, the basic
instructions use bit address to reference a contract. Comparison and advanced instructions use values referenced by 4
digit word addresses.
30
Double Word Addressing
N Double word addressing is the same as word addressing, except
that 32-bit data is referenced by the specified address and its next
address.
N The type of instruction used determines which addressing, word or
double word, is applied.
N When using a double word comparison instruction with GPC5,
press Ctrl+T in Edit mode to set the addressing mode to 'double',
and then enter comparison instruction. The addresses you enter
will be recognized as double word address. The character ‘D’ will
appear in the instruction box on the ladder program to indicate
double word addressing mode.
For example, as shown in the figure below, the double word, W0000,
is composed of two words, W0000 and W0001. The bits of W0000
become the least significant bits (LSB) and those of W0001 become the
most significant bits (MSB). Likewise, the double word address,
W0001, represents the combination of two words W0001 and W0002.
If a word is addressed in more than one place, like the word W0001
referenced by the two double words W0000 and W0001 as shown in
the following figure, be cautious because duplicate use of the same
word may cause problems.
31
Example 2) Comparison instruction in WinGPC
Double word
On the WinGPC screen, select the advanced
instruction inputt option. Enter D first and then enter
the symbol >=. Double word
addressing is applied for the addresses you enter.
Double word W0005 is composed with combination
of two words W5 and W6. M3 is made up of M3 and
M4. The comparison is performed on 32-bit data.
32
l/O Addressing
Addressing is based on the location of the module.
I/O addressing method: Fixed addressing
N I/O address range
- Input address: R000.00 to R015.07
- Output address: R016.00 to R031.07
- Special function address: R032 to R127 words (addressable as bit
addresses.)
Base (8 words) Expansion 1 (4 words) Expansion 2 (4 words)
Input: R00 to R07 Input: R08 to R11 Input: R12 to R15
Output: R16 to R23 Output: R24 to R27 Output: R28 to R31
Addressing example
IMPORTANT I/O addresses are allocated by byte. But, word addressing is used for internal
arithmetic.
The addresses of an expansion module are fixed. They are configured
automatically as Expansion 1 or Expansion 2.
33
I/O LEDs
The following figures illustrate I/O LEDs and their corresponding
memory addresses.
34
Special Internal Addresses
Word registers F000 to F015
Address Function Description
System diagnostics and
F0 System self-diagnostics, program check-up, operation control
control
System diagnostics and
F1 Internal clock, operation result, carry flag
clock
F2 to F7 Link control area Link installation, operation mode, status information, etc.
F8 to F10 Reserved system area Reserved area
F11 to F13 System control User-defined communication, RTC installation, system control, etc.
F14 PID control PID operation mode and operation control flag (channels 0 to 3)
F15 PID control PID operation mode and operation control flag (channels 4 to 7)
The system diagnoses RAM on system boot. If there is any fault, this
F0.02 CPU RAM check
bit turns on and operation is halted.
If user program memory and/or program content are damaged, this bit
F0.03 User memory error
and the error lamp turn on and output and operation are halted.
The processor verifies program syntax at the first run. If there is error,
F0.04 Program syntax error
this bit and the error lamp turn on and output and operation are halted.
F0.05 I/O module range error On when an invalid address that is larger than R64 word is used.
On when an I/O error occurs during system operation. If the operation
F0.06 Module change error mode is Remote, the operation is halted. In RUN mode, the error lamp
turns on and the processor continues processing.
Module type error If the type of the module that is mounted actually is different from I/O
F0.07 module information that is stored in the CPU, this bit and the error
(abnormal module) lamp turn on and operation is halted.
Set to Off if you do not want input module data to be input to the
F0.08 Input data control
processor, i.e., input update is set to No.
Set to Off if you do not want to output processor's operation result to
F0.09 Output data control the output modules, i.e., output update is set to No. The output
modules retain the last values prior to turning off this bit.
F0.10 All output Off Turns all outputs off in Run mode, i.e., sets output enable to No.
F0.11 Constant cycle interrupt On when a constant cycle interrupt instruction is being executed.
F0.12 Watchdog error On when a scan time exceeds the watchdog time.
Disable module type Set to On if you want to check the program without I/O module type
F0.13
check check on system boot.
Set to On if you want to edit the program when the processor is
F0.14 Program edit during run running (RUN mode). If any syntax error occurs, the processor is
stopped.
On when the processor is in the Run mode. Off when it is stopped or
F0.15 Processor run status
paused.
35
Functions of the F1.00 to F1.15 bits for PLC controlote
Address Function Description
On for the first scan whenever the operation mode changes from Stop
F1.00 First 1 scan on
to Run.
F1.01 Scan clock Toggles at every scan. (1 scan On and 1 scan Off)
F1.02 0.02 second clock Repeats 10 ms On and 10 ms Off.
F1.03 0.1 second clock Repeats 50 ms On and 50 ms Off.
F1.04 1 second clock Repeats 500 ms On and 500 ms Off.
Momentary power
F1.05 On when power is Off for 20 ms or more.
failure
On when the processor is in operation in the Run mode. However, be
F1.06 CPU switch/Run status cautious that this bit turns Off when the processor is in operation in
the Remote mode
Keep contact area error
F1.07 On when the K area data are destroyed and/or changed.
status
F1.08 Carry flag On when carry occurs with arithmetic instruction.
F1.09 Division by zero error On when the denominator of division instruction is zero
F1.10 Range error On when an absolute address exceeds the range.
F1.11 Reserved System area
F1.12 W area error System area
F1.13 Reserved System area
F1.14 Reserved System area
F1.15 Reserved System area
IMPORTANT The 16 bits of the F1 word provide the processor's special functions and
self-diagnostics results. They are read only, and will not receive user inputs and
can't be modified. (Except that the user can set the bit F1.5, momentary power
failure, only to off.)
36
Functions of the F11 word for user-defined communication
via COM2 port (Continued)
Address Function Description
F11.09 Ignores receive errors 1 (On): Ignores error if it occurs.
F11.10 Enables parity operation 1 (On): Uses parity
F11.11 Enables odd or even parity 0 (Off): odd parity, 1 (On): even parity
F11.12 Sets the communication data mode to 8-bit or 7-bit 0 (Off): 8-bit mode, 1 (On): 7-bit mode
0 (Off): ASCII format, 1 (On): hex format
F11.13 Specifies communication data format via port 2
(Note 2)
F11.14 Reserved System area
F11.15 Enables CRC-16 calculation 1 (On): Performs CRC-16 calculation
37
Functions of the F14 and F15 words for PID control
Address Function Description
F14.00 Loop0 PID control - 1: operating, 0: stop
F14.01 Parameter range error flag - 1: error, 0: normal
PID Loop0 control
F14.02 PID arithmetic mode - 1: manual, 0: auto
F14.03 PID control complete flag - 1: complete, 0: in operation
F14.04 to
PID Loop1 control Loop1 PID control: The functions are the same with Loop0.
F14.07
F14.08 to
PID Loop2 control Loop2 PID control: The functions are the same with Loop0.
F14.11
F14.12 to
PID Loop3 control Loop3 PID control: The functions are the same with Loop0.
F14.15
F15.00 to
PID Loop4 control Loop4 PID control: The functions are the same with Loop0.
F15.03
F15.04 to
PID Loop5 control Loop5 PID control: The functions are the same with Loop0.
F15.07
F15.08 to
PID Loop6 control Loop6 PID control: The functions are the same with Loop0.
F15.11
F15.12 to
PID Loop7 control Loop7 PID control: The functions are the same with Loop0.
F15.15
38
Special Register (SR) Area
The SR area consists of the range of SR000 (absolute address $0C00)
to SR511 (absolute address $0DFF). Programmers who cannot use the
SR key can use W2560 to W3071 instead.
The SR area and W area are essentially the same (ex: SR000 = W2560).
In some cases, SR000 is automatically specified when W2560 is
selected. 'SR' must be used in WinGPC.
39
Functions of SR000 to SR029 (W2560 to W2589):
CPU, Link, Remote and Error Status
Address Function Description
Indicates the CPU ID number in the lower 8 bits. 0 to 223 are the valid
SR000 W2560 CPU ID number
user-defined values, 255 is the default value.
Indicates current CPU information state. (run/stop/remote control/error)
MSB 03 02 01 00
Error = 1
CPU run control (same as F015)
SR001 W2561 CPU status
Program switch remote control (REM.STOP) = 1
40
Functions of SR30 to SR48 (W2590 to W2608):
Syntax Error Information
Address Function Detail
Bit 0 = On if the I/O number range of bit instruction is beyond the specified range.
Bit 1 = On if the channel number of the timer or the counter exceeds 255 or is
duplicated.
Bit 2 = On if the bit or word number in the advanced instruction is beyond the
specified range or if it designates external address that cannot be used.
Bit 3 = On if a word number in the refresh instruction INPR or OUTR is beyond
the specified range,
Bit 4 = On if an undefined instruction exists.
Bit 5 = On in event of a user program memory writing error.
Bit 6 = On in event of miscellaneous errors.
Bit 7 = On if the user program memory is abnormal.
Displays Bit 8 = On if an error on external I/O address and bit/word/double word numbers
SR030 W2590 used occurs.
error info.
Bit 9 = On if the label numbers of the JMP or CALL instructions exceed 63, the
corresponding instruction LBL or SBR does not exist, and/or the corresponding
LBL/SBR instructions exist prior to JMP/CALL instructions.
Bit 10 = On if the label number of the LBL instruction exceeds 63 and/or is
duplicated.
Bit 11 = On if the JMPS/JMP instructions are mistakenly combined and/or used.
Bit 12 = On if the FOR/NEXT instructions are mistakenly combined and/or used
more than four times. (Loop)
Bit 13 = On if SBR/RET instructions are not combined and/or used and/or the SBR
instructions overlap or exceed 63.
Bit 14 = On if INT/RETII instructions are not used properly.
Bit 15 = On if no END instruction inserted automatically.
SR031 W2591 - System area
SR032 W2592 The step number used for an error in using the bit range.
SR033 W2593 The step number used for an error in using the T/C range.
SR034 W2594 The step number used for an error in using the word range.
SR035 W2595 The step number used for an error in using I/O refresh.
SR036 W2596 The step number used for an error in using an abnormal code.
SR037 W2597 Program memory
SR038 W2598 Miscellaneous
SR039 W2599 Displays System operation
SR040 W2600 CPU The step number used for an I/O syntax error.
SR041 W2601 Error info. The step number used for a JMP/Call syntax error.
SR042 W2602 The step number used for an error in using LBL number.
SR043 W2603 The step number used for a JMPS/JMPE syntax error.
SR044 W2604 The step number used for a FOR/NEXT syntax error.
SR045 W2605 The step number used for a SBR/RET syntax error.
SR046 W2606 The step number used for an INT/RETI syntax error.
SR047 W2607 The step number used for an error in using END instruction.
SR048 W2608 System area
41
Functions of SR49 to SR251 (W2609 to W2811):
System Area
Address Function Detail
SR049 to W2609 to
Reserved System area
SR288 W2848
42
Timer/Counter Area
Addresses for timer/counter set value and present value
43
Addresses for timer/counter set value and present value
(Continued)
Set value Present Set value Present Set value Present
Channel Channel Channel
(SV) value (PV) (SV) value (PV) (SV) value (PV)
120 W2168 W2424 166 W2214 W2470 212 W2260 W2516
121 W2169 W2425 167 W2215 W2471 213 W2261 W2517
122 W2170 W2426 168 W2216 W2472 214 W2262 W2518
123 W2171 W2427 169 W2217 W2473 215 W2263 W2519
124 W2172 W2428 170 W2218 W2474 216 W2264 W2520
125 W2173 W2429 171 W2219 W2475 217 W2265 W2521
126 W2174 W2430 172 W2220 W2476 218 W2266 W2522
127 W2175 W2431 173 W2221 W2477 219 W2267 W2523
128 W2176 W2432 174 W2222 W2478 220 W2268 W2524
129 W2177 W2433 175 W2223 W2479 221 W2269 W2525
130 W2178 W2434 176 W2224 W2480 222 W2270 W2526
131 W2179 W2435 177 W2225 W2481 223 W2271 W2527
132 W2180 W2436 178 W2226 W2482 224 W2272 W2528
133 W2181 W2437 179 W2227 W2483 225 W2273 W2529
134 W2182 W2438 180 W2228 W2484 226 W2274 W2530
135 W2183 W2439 181 W2229 W2485 227 W2275 W2531
136 W2184 W2440 182 W2230 W2486 228 W2276 W2532
137 W2185 W2441 183 W2231 W2487 229 W2277 W2533
138 W2186 W2442 184 W2232 W2488 230 W2278 W2534
139 W2187 W2443 185 W2233 W2489 231 W2279 W2535
140 W2188 W2444 186 W2234 W2490 232 W2280 W2536
141 W2189 W2445 187 W2235 W2491 233 W2281 W2537
142 W2190 W2446 188 W2236 W2492 234 W2282 W2538
143 W2191 W2447 189 W2237 W2493 235 W2283 W2539
144 W2192 W2448 190 W2238 W2494 236 W2284 W2540
145 W2193 W2449 191 W2239 W2495 237 W2285 W2541
146 W2194 W2450 192 W2240 W2496 238 W2286 W2542
147 W2195 W2451 193 W2241 W2497 239 W2287 W2543
148 W2196 W2452 194 W2242 W2498 240 W2288 W2544
149 W2197 W2453 195 W2243 W2499 241 W2289 W2545
150 W2198 W2454 196 W2244 W2500 242 W2290 W2546
151 W2199 W2455 197 W2245 W2501 243 W2291 W2747
152 W2200 W2456 198 W2246 W2502 244 W2292 W2548
153 W2201 W2457 199 W2247 W2503 245 W2293 W2549
154 W2202 W2458 200 W2248 W2504 246 W2294 W2550
155 W2203 W2459 201 W2249 W2505 247 W2295 W2551
156 W2204 W2460 202 W2250 W2506 248 W2296 W2552
157 W2205 W2461 203 W2251 W2507 249 W2297 W2553
158 W2206 W2462 204 W2252 W2508 250 W2298 W2554
159 W2207 W2463 205 W2253 W2509 251 W2299 W2555
159 W2208 W2464 206 W2254 W2510 252 W2300 W2556
160 W2209 W2465 207 W2255 W2511 253 W2301 W2557
161 W2210 W2466 208 W2256 W2512 254 W2302 W2558
162 W2211 W2467 209 W2257 W2513 255 W2303 W2559
163 W2212 W2468 210 W2258 W2514
164 W2213 W2469 211 W2259 W2515
44
Absolute Addressing
In LDR, DLDR, STO, and DSTO instructions, the absolute address is
used to perform indirect addressing to register or utilize the built-in
communication port.
When accessing a bit absolute address using the program loader port
communication protocol, the bit address (0 to 15 or $0 to $F) is kept
separate from the word address (as shown below).
15 4 3 0
1 word display Word absolute address Bit number
For example, the absolute bit address for K12712 internal contact is
$1BFC (hex). (Word absolute address = $01BF + Bit number = $C =
$1BFC)
45
Processor Operation Mode
What is the processor operation mode?
The processor has an external RUN/REMOTE/PROG switch. The PLC
performs a system check that determines the position of the switch.
The switch position determines which operating mode the PLC is in. It
can set to RUN, STOP, REMOTE, or ERROR mode.
Status LEDs
46
Changes of operation mode according to operation mode
selector switch position
Switch position Operation mode change
RUN RUN
RUN PAUSE
RMT
PROG STOP
NOTE1 As in the status indicator, if an error occurs within a mode during RUN state, set the mode change to
STOP or PAUSE automatically base on the type of error information, and the error lamp is turned on. However, an
arithmetic error will occur during the operation when, the error lamp is turned on and is changed to STOP.
Afterwards, after the PROCESSOR has been halted, the error lamp may be turned off.
NOTE2 Mode switches in status will be remotely changed when the error is canceled.
NOTE3 Be cautious during programming since the status switch of Note 1) or Note 2) changes even when
setting the F0.15 contact that controls operation modes is turned to On/Off.
Note2
RUN Mode
The PLC reads the external input signals and executes the user
program stored in memory. The external outputs are updated on every
scan based on program results. (Run LED maintains On.)
PAUSE Mode
A user program is operated at every scan and the I/O and result value
is maintained. This mode is used when checking and debugging a
program at every scan. This mode is similar to the Stop mode, but it
does not initialize data. (RUN LED flickers.)
STOP Mode
The user program is stopped and the external outputs are turned Off.
In the Stop mode, you may correct, delete or transfer the program.
ERROR Mode
The ERROR mode occurs when the PLC finds an error after running the
self-diagnosis routine. When an error occurs, the PROCESSOR decides
whether the operation continues, and displays either STOP or RUN.
The Error can be cleared by changing the power from Off to On,
switching operation mode from STOP to RUN, or downloading
programs after checking the error code and taking the appropriate
measures.
47
48
5
Programming Instructions
IMPORTANT Refer to the NX7/NX70 Instruction Set Reference Manual for detailed
information on the NX7 and NX70 instruction set and for application examples
to show the instruction set in use.
49
Timer, Counter and Shift Register
Instructions
Ladder
Mnemonic Name Description Remarks
Symbol
50
Comparison Instructions
Word ladder Double word
Mnemonic Name Description
symbol ladder symbol
STR == START == == D== On if A is equal to B.
AND == AND == A= A= A and B are word/double word or
B= B=
OR == OR == data value.
IMPORTANT For double word comparison instructions, the letter D should precede the word
comparison instructions in the Mnemonic program.
51
Arithmetic Instructions
Word ladder Double word
Mnemonic Name Description
symbol ladder symbol
ADD Decimal D = S1 + S2
(DADD) addition (Decimal operation)
ADDB D = S1 + S2
BCD addition
(DADDB) (BCD operation)
SUB Decimal D = S1 - S2
(DSUB) subtraction (Decimal operation)
SUBB D = S1 - S2
BCD subtraction
(DSUBB) (BCD operation)
MUL Decimal D = S1 x S2
(DMUL) multiplication (Decimal operation)
MULB BCD D = S1 x S2
(DMULB) multiplication (BCD operation)
SBC Decimal D = S1 - S2 – CY
subtraction with
(DSBC) carry (Decimal operation, include carry)
52
Logical Instructions
Word ladder Double word
Mnemonic Name Description
symbol ladder symbol
Store AND of S1 and S2 in D
WAND AND (logical
(DAND) multiply)
Store OR of S1 and S2 in D
WOR
OR (logical sum)
(DOR)
Rotation Instructions
Word ladder Double word
Mnemonic Instruction Description
symbol ladder symbol
Rotate the content of D to the left N
RLC Rotate left times. (lower->higher)
(DRLC) without carry
53
Word Conversion Instructions
Word ladder Double word
Mnemonic Name Description
symbol ladder symbol
Convert binary value of S to BCD and
store it in D.
BCD BCD
(DBCD) Conversion
54
Bit Conversion Instructions
Word ladder Double word
Mnemonic Name Description
symbol ladder symbol
Set Nth bit of D to 1.
SC Set Carry
RC Reset Carry
55
Move Instructions
Word ladder Double word
Mnemonic Name Description
symbol ladder symbol
Copy Ns words from Sr to D.
MOV Move
56
Program Control Instructions
Word ladder Double word
Mnemonic Name Description
symbol ladder symbol
Execute instructions in the block
FOR
For Loop between FOR and corresponding
(DFOR)
NEXT. Repeat execution D times.
Decrement D of FOR instruction by 1.
NEXT Next If it is not zero, repeat execution
from FOR instruction.
Jump to the position marked LBL L
JMP Jump (label number).
(L: 0 to 63)
Position jumped to by the
LBL Label corresponding JMP instruction.
(L:0 to 63)
57
System Control Instructions
Word ladder Double word
Mnemonic Name Description
symbol ladder symbol
Refresh external input (Receive input
INPR Input Refresh signal during program execution).
Ch is external input word address.
Refresh external output (Send
output signal during program
OUTR Output Refresh execution).
Ch is external output word address.
Watchdog
WAT Clear watchdog scan time.
Timer
58
6
Special Functions
Input terminal
Address Signal Description
Stores the preset value as the counter’s present value.
R0.0 HSC, Preset When the contact is on, the preset value is stored as the present value.
(Operates only when R40.11 is set.)
Inputs count inhibit (The counter stops when the contact is On.)
R0.1 HSC, Inhibit
(Operates only when R40.10 is set.)
When setting Mode 0, input counter pulse.
R0.2 HSC, IN 0
When setting Mode 2, input encoder phase A.
When setting Mode 0, input counter direction.
R0.3 HSC, IN 1 (Off = Increase, On = Decrease)
When setting Mode 2, input encoder phase B.
59
High-speed counter registers
Address Signal Description
Bit no.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved
0 0 = Sets mode 0= pulse input mode (input R0.2 = pulse, R0.3 = direction)
R41 - Reserved
R42 CH0 PV_LO Stores the counter present value, low word (low 16 bits)
R43 CH0 PV_HI Stores the counter present value, high word (high 16 bits)
R44 CH0 STR_LO Stores the preset value (low word)
R45 CH0 STR_HI Stores the preset value (high word)
R46 ~ 55 - Reserved
R56 H0 SV_LO Stores the set value (low word)
R57 H0 SV_HI Stores the set value (high word)
R58 - Reserved
R59 - Reserved
CH0
R60 Stores the present value (low word) at the point of inputting the preset (H0 PV_LO)
CATCH_LO
CH0
R61 Stores the present value (high word) at the point of inputting the preset (H0 PV_HI)
CATCH_HI
R62~64 - Reserved
60
Pulse input mode (Mode 0)
The pulse input mode is executed by setting the contacts R40.13 and
R40.12 to ‘0’. It counts input pulses that enter the R0.2 input terminal.
The counter value increases when the R0.3 terminal signal that
determines the direction is set to Off, and it decreases when the R0.3
terminal signal is set to On. If the bit of the direction setting input R40.8
is set to Off (set as '0'), then the count will always increase.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
Word R40 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 Bit no.
Reserved
Sets the use of R0.3 (input direction)
(input 1= Increase/decrease mode, 0=Increase mode)
61
Counting graph in pulse input mode
Pulse input
(R0.2)
Direction input Forward direction Reserve direction Forward direction
(R0.3)
Counting inhibit Counter runs
Counter inhibit
(R0.1)
PV value
In the case of the pulse input mode, the HSC performs counting when
a pulse is falling. The present value of the counter is scaled up when
the direction input is Off, and is scaled down when the direction input
is On.
When the counter inhibit input is set to On, the counter stops counting
regardless of the direction.
Direction input
Pulse input
62
Program example of pulse input mode
F001.00
R65.0
SET
R65.2 Pulse
SET input
mode
LET setting
D = R40
S = $0F00
D>= R16.0
A = R42 OUT
B = 10000
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Word R40 0 0 1 0 1 1 1 0 0 0 0 0 0 0 0 0
Bit no
Reserved
Sets the use of R0.3 (input phase B) (set to 1)
63
Counting graph in encode mode (two-phase input)
Phase A
Phase B
PV
The present value of the counter is going up when the phase angle of
phase A is followed by that of phase B, while B is going down, and
when phase B is followed by phase A. Essentially, when the phase A
value is input first, the count increases as the phase A value rises
(incremental edge), but when the phase A value is input later, the
count decreases as the phase A value falls (decremented edge).
24V
encoder For 28 and
+V OV A B 48 points
F001.00 R65.0
SET
R65.2
SET
Encode
LET input
D = R40 mode
S = $2F00 setting
D>= D<
R16.0
A = R42 A = R42 OUT
B = 10000 B = 20000
64
Input Pulse Catch Function
Overview
Four input contacts (R0.0, R0.1, R0.4, and R0.5) have a pulse catch
function, which maintains the On status until the scan is completed,
even when a shorter pulse than the scan time is input. This function
allows these contacts to process the high-speed pulses, which are
shorter than the scan time, and without the additional cost.
Address settings
Address Signal Description
R66.0 P_CATCH_0 Sets the use of R0.0 pulse catch function ('1' = enable, '0' = disable)
R66.1 P_CATCH_1 Sets the use of R0.1 pulse catch function ('1' = enable, '0' = disable)
R66.4 P_CATCH_4 Sets the use of R0.4 pulse catch function ('1' = enable, '0' = disable)
R66.5 P_CATCH_5 Sets the use of R0.5 pulse catch function ('1' = enable, '0' = disable)
Time chart
Scan time
400 µs or more
Pulse input
F001.00
R66.0
< SET > R0.0 pulse catch function setting
Operates the first one scan R66.1
at the beginning < SET > R0.1 pulse catch function setting
R66.4
< SET > R0.4 pulse catch function setting
R66.5
< SET > R0.5 pulse catch function setting
65
Pulse Output Function (for Transistor
Output Model)
Pulse output settings registers
Address Signal Description
Reserved
Reserved
Indicates Run/Stop of pulse output
(display On when the pulse output is operating)
* Sets pulse output frequency
R33 CH0 FREQ.
- Output frequency: 20 to 5,000 Hz
CH0 DUTY or * Sets pulse output duty ratio or output pulse numbers
R34 CH0 SV (Pulse - For PWM mode, sets duty ratio (25% to 75%)
numbers) - For Pulse + Dir, sets output pulse numbers
R35 CH0 PV Indicates the number of pulses from channel 0
Reserved
Reserved
Indicates RUN/STOP status of pulse output
(display On when the pulse output is operating)
* Sets pulse output frequency
R37 CH1 FREQ.
- Output frequency: 20 to 5,000 Hz
CH1 DUTY or * Sets pulse output duty ratio or output pulse numbers
CH0 SV
R38 - For PWM mode, sets duty ratio (25% to 75%)
(Number of
pulses) - For Pulse + Dir, sets output pulse numbers
NOTE Pulse acceleration/deceleration designation area (supports version 1.20 or higher in pulse mode)
66
Address Signal Description
Start frequency for Area designating start frequency value (when designating acceleration/
R67
CH0 deceleration pulse of pulse mode)
Number of increased
R68 Designates the number of counter (pulse) in acceleration area
pulse for CH0
Number of decreased
R69 Designates the number of counter (pulse) in deceleration area
pulse for CH0
Start frequency for Area designating start frequency value (when designating acceleration/
R70
CH1 deceleration pulse of pulse mode)
Number of increased
R71 Designates the number of counter (pulse) in the acceleration area
pulse for CH1
Number of decreased
R72 Designates the number of counter (pulse) in the deceleration area
pulse for CH1
67
How to Use
The pulse output generates output pulses in the following order and
process.
1) Set mode setting, direction, frequency, duty ratio, or output
numbers in the register.
Ex) In case of CH0, PWM mode, 5 kHz, and 50% duty ratio
- P0 MODE (R32) = $3300 (0011 0011 0000 0000)
- P0 FREQ (R33) = 5000
- P0 DUTY (R34) = 50
2) Set R64.0 to Set ('1') in order to generate pulses as CH0.
3) Set R64.2 to Set ('1') in order for CH0 to start pulse output.
=> When setting is as described above, a PWM signal of 5 kHz goes
to CH0.
F001.00
R64.0
< SET >
LET
D= R32
S = $3300
LET
D = R33
S = 5000
LET
D = R34
S = 50
F001.04
R64.2
< OUT >
68
Program example 2: pulse output mode (using pulse + dir
mode)
The following program shows an example of using pulse + dir mode
that enables both pulse and direction mode operations. If you set CH1,
Pulse+Dir mode, 3 kHz, 500 output pulses, and high direction for the
register and then output the pulse per second, the following setting is
required.
R64.1
< SET >
LET
D=R36
S=$0B00
LET
D = R37
S = 3000
LET
D = R38
S = 500
F001.04
R64.3
< OUT >
The one second-clock signal (Repeats On for 0.5 seconds and Off for 0.5 seconds)
69
Program example 3: pulse output mode (with acceleration/
deceleration for version 1.20 or higher)
If you set CH1, pulse mode, 3 kHz, 5,000 output pulses, 500 kHz of start
frequency, 1,000 acceleration pulses, 800 deceleration pulses, and
high direction in the register and then output the pulse per three
seconds, the following setting is required.
F001.00
R64.1
< SET >
LET
D = R36
S = $0B00
LET
D = R37
S = 3000
LET
D = R38
S = 5000
LET
D = R70
S = 500
LET
D = R71
S = 1000
LET
D = R72
S = 800
TC000
R64.3
< OUT >
70
Appendix
Using WinGPC
PC PLC (NX7)
d
RXD 2 2 TXD
c
TXD 3 3 RXD
DTR 4 4 RTS
GND 5 5 GND
DSR 6 6 485-
RTS 7 7 485+
PC setting (Ex: WinGPC) CTS 8 8 CTS
PLC setting
- PC communication port - 9 9 Vcc
setting (COM1 to 4) - Front com. terminal
PLC FG (CASE) Off (RS232C)
- Communication speed 9-pin D-Sub connector (Maintains the speed
(38400 to 4800) (Female) 9-pin D-Sub connector
once connected)
(Male)
- No access to
communications of other e
software < Communication cable >
NX_CBLCPU2 (2 m),
NX_CBLCBLCPU5(5 m)
f MJ Terminal NO Signal
h
1 485+
< RS-232C communication cable > 2 485-
Produced on order
3 485+
4 485-
2
7 RXD
8 3 8
TXD TXD
4 RXD 7
9 GND 6
5
GND
71
RS-485 communication multi-drop wiring method using COM2
MJ PC (9-pin female)
TXD 8 2 RXD
RXD 7 3 TXD
GND 6 5 GND
In case of an
End-station terminal
72
Going Online with WinGPC
Overview
Install the NX7 series via an online connection since you can normally
connect and control the installed NX7 series on the WinGPC version
3.0 or higher. If you can see the NX7 Model in the PLC model list that
appears after selecting the ‘Project | New Project’ item from the menu,
as shown in the figure below, normal operation can proceed.
Initialization
Since the PLC’s internal battery is open after purchasing the PLC
initially, programs and data are not cleared. After the battery is
connected and the power supply is turned on, the programs and data
can be initialized to operate normally. Initialization includes deleting
programs, clearing data, setting ID, and setting the time.
N Delete program: Connect after clicking the Online option on the
Online menu or the Online icon on the toolbar. Simply enter 255 in
the ID textbox and set the communication speed. Once connected,
select the ‘Clear Program’ option from the Online menu.
73
N Clear Data: Click the ‘System Information’ button on the Online
menu and select ‘KEEP clear’. This will clear all data in the Keep
contact (K) area and will complete data initialization.
N The connection will fail with a different ID since the PLC has its
own intrinsic ID. The initialization method succeeds by setting this
ID to 255. That is, when the ID is set to 255, it represents an
undesignated ID, which allows users to communicate with any ID.
74
N The time setting works automatically when the timing function is
built in, and you can modify the date and time by clicking the date
and time set buttons respectively. You can easily assign the date or
time automatically to the PLC designated on the PC by clicking the
‘RTC date’ or the ‘RTC time’ button.
75
Programming and Downloading
Overview
Programming is processed in the offline state while disconnected from
the PLC. You can designate a specific address by selecting the
instruction icon and clicking on the location to run it. The 'Delete' key
can be activated after the area is selected for moving or deleting the
position.
The shortcut keys can be used for fast and easy processing in cases
where it is inconvenient to use the mouse. The desired instructions
can be entered directly by using the shortcut key ‘X’ for advanced
instructions.
Program downloads
After downloading a complete program for transmission to the PLC to
be run, or for executing a ladder program, you should transmit it to the
PLC as follows.
76
First, set the PLC operation switch to PROG, and select the `Online'
button from the displayed icons. Select 'WinGPC==>PLC (W)...' from
the Online menu.
If the I/O contact point status does not have
a problem, set the operation switch to ‘RUN’.
The ‘RUN’ LED will be turned on, and the PLC
will begin to run.
Program Monitoring
Overview
When monitoring a program transmitted to the PLC, you may check
the status of the contact point or operation by selecting the “Ladder
Monitoring” from the “Monitoring” menu, as shown in the right
figure.
To display the ladder program status as shown in the figure below, the
same program must be installed on the PC, and it will convert to the
ladder status through the normal programming process.
77
Program uploads
You can upload the program and export the program running on the
PLC directly to the PC. The menu is selected in online mode. If a
password has been set, this function will function after password
validation.
Program verification
When checking the NX7 Series PLC programs on the PC, you must
install the same program on the PC after uploading. Otherwise, you
cannot verify and monitor the PLC programs. The figure below shows
that the installed program is in the monitoring status.
78
PLC Diagnostics
Overview
When diagnosing the PLC CPU, the status of the PLC is checked by
selecting ‘CPU Diagnosis’ from the ‘Monitoring’ menu while it is
online. If it is in normal status, the following screen will appear.
79
Error checkup
If any program error occurs, ‘FAIL’ appears on the ‘Program Syntax’
item in the system diagnosis table on the left side of the error
information screen, and its relevant step number is shown in the
Syntax Diagnosis table on the right side. Checking the error code is
critical to taking quick and appropriate action to correct the problem.
The figure below displays an error that appeared because of a wrong
designation of the input/output address. In other words, the error
occurred because the output point to step #2 was assigned as an input
address. If this occurs, the error lamp turns on, and the CPU stops.
80
Using a Password
Overview
You can set the password to protect programs stored in the PLC CPU.
To set or change the password, go online with your WinGPC, click
Online | System Information | Password and then enter a new
password. The password may include any combination of numbers
and special characters.
However, we recommend using alphanumeric characters. Once the
password is set, if you do not enter the correct password, you cannot
access to the program, i.e., you cannot upload the program, and you
cannot change or disable the password.
Disabling a password
Enter '0000' to disable the password function. Then,you will not be
prompted to enter the password when you go online.
81
82
NX7 Series Programmable Controllers User Manual
www.samsungautomation.co.kr