Professional Documents
Culture Documents
User Manual
WARNING
IMPORTANT
ATTENTION
Contents
1. Introduction .............................................................................. 11
Features ..........................................................................................................11
Installation Environment................................................................................. 13
3. Specifications ............................................................................ 21
General Specifications ................................................................................... 21
Power Supply Specifications .......................................................................... 21
Performance Specifications............................................................................ 22
Input Specifications ........................................................................................ 23
Output Specifications ..................................................................................... 24
Communication Specifications ....................................................................... 26
Installation and Wiring.................................................................................... 27
Status LEDs ................................................................................................... 30
6. Special Functions..................................................................... 63
High-Speed Counter Input Function............................................................... 63
Input Pulse Catch Function ............................................................................ 69
Pulse Output Function (for Transistor
Output Model) ................................................................................................ 70
Please check that the product is what you ordered and there
are no damaged or missing parts in the package.
LX7/LX7s Series
I/O Control Points
28 = 28 points (16 input, 12 output)
48 = 48 points (28 input, 20 output)
IMPORTANT
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.
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.
Make sure to use an external device to PLC when configuring the protective
circuit breakers for emergencies.
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.
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.
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.
Avoid vibrations and crashes with other objects. Otherwise, it may cause a
fire, damage, malfunction or aging to the product.
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)
Do not disassemble or remodel the product. If you need to repair the product,
contact the service center.
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.
Use the product only for the purposes stated on the product or in this user
manual.
When disposing the product, make sure to follow your local regulations and
guidelines on industrial waste disposal.
10
1
Introduction
Features
Small footprint and optimized functions
The LX7 and LX7s PLC has a small footprint and is optimized to meet your
environmental needs for control.
l
Compatibility of peripherals
Supports backward compatibility with the existing programming device
(LXsoft), which allows easier programming, CPU state checkups, forced
input/output, input/output monitoring, and program download and upload.
11
Self-diagnostics
The convenient self-diagnostics function makes your system diagnostics
and troubleshooting easier.
12
Installation Environment
ATTENTION
Direct sunlight.
Humidity outside the range of 20 to 90% (noncondensing).
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
13
14
2
System Configuration
System Configuration
n LXsoft
version 3.5 or higher
ATTENTION
48-point version
15
28 points
56 points
84 points
Base
module
(48 points)
Expansion 2
(28 points)
Expansion 2
(28 points)
48 points
76 points
104 points
Base
module
(48 points)
16
Expansion 2
(28 points)
Expansion 2
(28 points)
Input
power
LX7-48ADR
100 to
240V ac
power
supply
16-point dc input
12-point transistor output
28-point dc input
20-point relay output
LX7-48ADT
28-point dc input
20-point transistor output
LX7-28DDR
16-point dc input
12-point relay output
LX7-28DDT
LX7-48DDR
24V dc
power
supply
16-point dc input
12-point transistor output
28-point dc input
20-point transistor output
LX7s-10ADR
6-point dc input
4-point relay output
LX7s-10ADT
6-point dc input
4-point transistor output
LX7s-14ADR
8-point dc input
6-point relay output
LX7s-14ADT
8-point dc input
6-point transistor output
LX7s-20ADR
12-point dc input
8-point relay output
LX7s-28ADR
100 to
240V ac
power
supply
28-point dc input
20-point relay output
LX7-48DDT
LX7s-20ADT
Remarks
16-point dc input
12-point relay output
LX7-28ADR
LX7-28ADT
I/O specifications
12-point dc input
8-point transistor output
16-point dc input
12-point relay output
LX7s-28ADT
16-point dc input
12-point transistor output
LX7s-40ADR
24-point dc input
16-point relay output
LX7s-40ADT
24-point dc input
16-point transistor output
LX7s-48ADR
28-point dc input
20-point relay output
LX7s-48ADT
28-point dc input
20-point transistor output
17
Expansion module
Catalog number
Input power
I/O specifications
LX7-28EDR
LX7-28EDT
Remarks
16-point 12/24V dc input
12-point relay output
2A per point
16-point 12/24V dc input
12-point transistor output
4A per point
Programming software
Programming
software
LXsoft 3.8
(Windows)
Catalog number
Specifications
Allows you to perform the following tasks on a remote
computer:
PLC program editing and monitoring, file management,
program backup, online editing, error and status checkup, network status check-up, I/O mapping, time chart
monitoring
Remarks
Programming product
Product Name
Handy-Loader
Catalog number
PGM-500
Specifications
Remarks
Cables
Item
Communication
cable for both
RS232 and
RS485
18
Catalog number
Specifications
LX_CBLCPU02
LX_CBLCPU05
Remarks
Hardware Features
COM1 communication terminal
RS-232C/RS485 communication
connector 9-pin female D-Sub
(LX7s controllers support RS-232C
only on COM1)
Status LEDs
LED
Description
RUN
PROG
ERR
COM1
COM2
Power supply
Output LEDs
Output
terminals
Mode
RUN
RMT
PROG
Description
Processor is in operation.
Program editing is not allowed.
Remote control status.
Run or pause operation, program
editing and downloading are allowed.
Processor is in stop mode.
Program editing is allowed.
IMPORTANT
Status
Description
Off
On
Off
On
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. Use of the COM1 DIP switch is
applicable for LX7 controllers only. LX7s controllers support RS232C only on
COM1.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.)
19
20
3
Specifications
General Specifications
Item
Temperature
Humidity
Specifications
Operating
0 to 55 C
Storage
-20 to 70 C
Operating
10 to 90% RH (Non-condensing)
Withstand voltage
1500V ac for 1 minute between external terminal (ac) and frame ground (FG)
20 ms or less
Noise immunity
Insulation resistance
10 M
Vibration immunity
Dust condition
No conductive dust
Chemicals
Corrosive gas
No corrosive gas
Shock immunity
Grounding
Case material
PC/ABS
Cooling method
Environ ment
IP20
AC input power
DC input power
Rated voltage
24V dc
85 to 264V ac
24V 10% dc
33 Watts
33 Watts
47 to 63 Hz
Inrush current
Rated output current
AC power circuit configuration
Fuse
Internal
circuit
21
Performance Specifications
Processor
LX7 SERIES
Control method
External Input/output
Instructions
Processing
speed
Basic
Memory size
Expansion unsupported
28 types
Advanced
139 types
Basic
Advanced
Program capacity
LX7s SERIES
9k words
2k words
I/O (R)
Timer/Counter
(TC or TIM)
Speed
Port
Communications
Number of ports
Supporting functions
Special functions
Others
Programming
Tools
Memory backup
22
2 ports
2 of 4 step communications protocol (Port 1 and 2)
User-defined communications, Modbus slave (Port 2)
High-speed counter
Pulse output
4 contacts built-in
RTC
Built-in
Unsupported
PID
Unsupported
Programming S/W
Input Specifications
Item
DC input
Input type
DC voltage
Insulation method
Photocoupler
12 to 24V dc
Voltage range
10.8 to 26.4V
10 mA or less
Min. On voltage/current
5V or less/0.6 mA or less
Input impedance
Respons
e time
Approx. 3.6 K
Off On
2 ms or less
On Off
2 ms or less
50 mA or less at 5V
Polarity
None
Common method
Status display
LED
IMPORTANT
Sensor
0V
C0
NC
DC24V
OUT
0V
DC24V
0.1
0.0
C0
IN
field side
0.3
0.2
0.1
0.0
0.2
Two-wire Sensor
Sensor
0.5
0.4
0.3
0.4
0.7
0.6
0.5
0.6
NC
0.7
0.0
0V
C0
1.1
1.0
C0
1.0
1.3
1.2
1.1
1.2
1.5
1.4
1.3
1.4
field side
Internal circuit
DC24V
C1
Vcc
1.7
1.6
1.5
1.6
1.7
Internal circuit
DC24V
Vcc
0.4
Sensor
C0
0V
Two-wire Sensor
Sensor
Sensor
0V
DC24V
OUT
0V
DC24V
field side
C0
NC
C0
IN
0.1
0.0
0.0
0.3
0.2
0.1
0.2
0.5
0.4
0.3
0.4
0.7
0.6
0.5
0.6
NC
0.7
Internal circuit
DC24V
0.0
0V
C0
C1
1.1
1.0
C0
1.0
1.3
1.2
1.1
1.2
1.4
1.3
DC24V
0V
1.4
1.7
1.6
1.5
1.6
1.7
Internal circuit
field side
Vcc
1.5
0.4
Sensor
Vcc
C0
23
Output Specifications
Item
Catalog number
LX7-28xxR
LX7s-10xxR
LX7s-14xxR
LX7s-20xxR
LX7s-28xxR
LX7-48xxR
LX7s-40xxR
LX7s-48xxR
Output points
Insulation method
Relay insulation
Response
time
Off On
10 ms or less
On Off
10 ms or less
Surge absorber
Not applicable
300 mA or less at 5V
Common method
Status display
LED
500 mA or less at 5V
AC+
AC-
16.1
16.2
16.4
16.6
OUT 16.0
C2
16.3
16.5
16.7
C0
C1
NC
FG
16.0
C0
16.1
C1
16.2
C2
16.4
16.3
C3
16.6
16.5
NC
16.7
17.0
17.1
17.0
C3
17.2
17.2
17.1
Vcc
17.3
OUT
2A
LOAD
NC
17.3
COM 5 to 30V dc
100/200V ac
AC+
AC-
FG
16.1
16.2
16.4
16.6
OUT 16.0
C2
16.3
16.5
16.7
C0
C1
NC
16.0
C0
C1
24
16.1
16.2
C2
16.4
16.3
16.6
16.5
NC
16.7
C3
17.0
17.1
17.0
C3
17.2
17.2
17.1
NC
17.3
C4
17.3
17.4
17.5
17.4
C4
17.6
17.6
17.5
17.7
NC
17.7
C5
18.0
18.1
18.0
C5
18.2
18.2
18.1
18.3
NC
18.3
Item
Transistor output
Catalog number
LX7-28xxT
LX7s-10xxT
LX7s-14xxT
LX7s-20xxT
LX7s-28xxT
LX7-48xxT
LX7s-40xxT
LX7s-48xxT
Output points
Insulation method
Photocoupler
12 to 24V dc
10 to 30V dc
Polarity
3A, 10 ms or less
100 uA or less
Response time
Off On
1 ms or less
On Off
1 ms or less
80 mA or less
Common method
Status display
LED
AC+
Internal circuit
16.1
16.2
16.4
16.6
OUT 16.0
C2
16.3
16.5
16.7
C0
C1
NC
16.0
16.1
16.2
16.4
16.6
C3
NC
17.0
17.1
17.0
17.2
COM 60 to
200mA
OUT
17.3
17.2
24V dc Int
Power
NC
LOAD
Vcc
AC-
FG
C0
C1
C2
16.3
16.5
16.7
C3
17.1
17.3
Int OV
10 to 30V dc
AC+
IN AC+
IN
ACFG
ACFG
AC+
AC+
ACAC-
FG
FG
16.0
16.1
16.2
16.4
16.6
OUT 16.0
16.1
16.2
16.4
16.6
OUT
C2
16.3
16.5
16.7
C2
16.3
16.5
16.7
C0
C1
C0
C1
NC
NC
16.0
16.0
C0
C0
16.1
16.1
C1
C1
LL
16.2
16.2
C2
C2
LL
16.4
16.4
16.3
16.3
LL LL
16.6
16.6
17.0
17.2
17.0
17.2
17.1
17.3
17.1
17.3
C3
C3
NC
NC
16.5
16.5
16.7
16.7
LL LL LL
LL
17.0
17.0
C3
C3
17.2
17.2
17.1
17.1
LL LL
NC
NC
17.3
17.3
LL LL
17.4
17.6
17.4
17.6
17.5
17.7
17.5
17.7
C4
C4
17.4
17.4
C4
C4
17.6
17.6
17.5
17.5
LL LL
NC
NC
17.7
17.7
LL LL
18.0
18.2
18.0
18.2
18.1
18.3
18.1
18.3
C5
C5
18.0
18.0
C5
C5
18.2
18.2
18.1
18.1
LL LL
NC
NC
18.3
18.3
LL LL
25
Communication Specifications
Status LED
(Flashes during communication)
COM1 comm. port
9-pin female D-Sub
RS232/RS485
selector switch
Item
Termination
resistence setting switch
Specifications
COM1: RS-232C or RS-485, 9-pin D-Sub
DIP switch / LX7s controllers support RS-232C only on COM1
Interface
Baud rate
Protocol
Data bit
8 bits
Parity
None
Stop bit
1 bit
Communication
distance
Termination
resistance
COM1: adjusted by the internal DIP switch /COM2: external user wiring (150 recommended)
Transmission
cable
IMPORTANT
26
No
Signal
NC
485+
TXD
485-
RXD
485+
RTS
485-
GND
Reserved
Signal GND
(LX7 only)
CTS
232C/RXD
(LX7 only)
Vcc
232C/TXD
(LX7 only)
Avoid
places subject to rapid
temperature fluctuations and
condensation.
Installation precautions
Allow sufficient space on all sides
of the controller system for
adequate ventilation.
27
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
Installation dimensions
* 28 points
unit: mm
* 48 points
100 mm
146.0 mm
4.2
10.0
81.0 mm
(31.9 in)
126.0 mm
(4.96 in)
87.0 mm
(3.43 in)
9.5
87.0 mm
(3.43 in)
10.0
1.5
3.0
28
3.0
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
Right
Left
Down
Use the terminals that comply with the specifications given below.
Terminal size
W = 6.35 mm (0.25 in) or less
L = 6.35 mm (0.25 in) or less
Solderless terminal
Wiring torque
M3.0
ATTENTION
WARNING
29
isolation
transformer
Noise
filter
* 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
30
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.
31
32
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.
Memory areas
Addresses
Description
External I/O
R000.00 to R31.15
I/O area
512 points, 32 words
Special internal
contact
R32.00 to R127.15
Link contact
L000.00 to L063.15
Internal contact
M000.00 to M127.15
Keep contact
K000.00 to K127.15
Special contact
F000.00 to F015.15
Timer/Counter
Channels: 0 to 255
Set value: SV0 to SV255
Current value: PV0 to PV255
Contact: TC0 to TC255
Data register
W0000 to W2047
Special register
SR000 to SR511
33
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.
34
Word
Double word
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.
35
Double word
On the LXsoft 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.
36
l/O Addressing
Addressing is based on the location of the module.
I/O addressing method: Fixed addressing
l
Expansion 1 (4 words)
Input: R08 to R11
Output: R24 to R27
Expansion 2 (4 words)
Input: R12 to R15
Output: R28 to R31
Addressing example
Input R0.0 to R1.7
28 points
28 points
48 points
IMPORTANT
28 points
28 points
OutputR16.0 to R18.3
InputR12.0 to R13.7
28 points
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.
37
I/O LEDs
The following figures illustrate I/O LEDs and their corresponding memory
addresses.
28-point base module
38
Expansion 1
Expansion 2
Function
Description
F0
F1
F2 to F7
F8 to F10
Reserved area
F11 to F13
System control
F14
PID control
F15
PID control
Function
System diagnostics
CPU ROM check
(ROM Checksum)
Description
The system starts self-diagnostics on system boot.
If there is any fault, this address turns on
The system diagnoses ROM on system boot. If there is any fault, this bit and
the error lamp turn on and output and operation are halted.
F0.02
The system diagnoses RAM on system boot. If there is any fault, this bit
turns on and operation is halted.
F0.03
If user program memory and/or program content are damaged, this bit and
the error lamp turn on and output and operation are halted.
F0.04
The processor verifies program syntax at the first run. If there is error, this
bit and the error lamp turn on and output and operation are halted.
F0.05
F0.06
On when an I/O error occurs during system operation. If the operation mode
is Remote, the operation is halted. In RUN mode, the error lamp turns on
and the processor continues processing.
F0.07
If the type of the module that is mounted actually is different from I/O
module information that is stored in the CPU, this bit and the error lamp turn
on and operation is halted.
F0.08
Set to Off if you do not want input module data to be input to the processor,
i.e., input update is set to No.
F0.09
Set to Off if you do not want to output processor's operation result to 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
Turns all outputs off in Run mode, i.e., sets output enable to No.
F0.11
F0.12
Watchdog error
F0.13
Set to On if you want to check the program without I/O module type check
on system boot.
F0.14
Set to On if you want to edit the program when the processor is running
(RUN mode). If any syntax error occurs, the processor is stopped.
F0.15
39
Function
Description
F1.00
First 1 scan on
On for the first scan whenever the operation mode changes from Stop to
Run.
F1.01
Scan clock
F1.02
F1.03
F1.04
1 second clock
F1.05
F1.06
F1.07
F1.08
Carry flag
F1.09
F1.10
Range error
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.)
Description
F11.00
F11.01
F11.02
F11.03
F11.04
F11.05
40
Function
F11.06
F11.07
F11.08
Function
Description
F11.09
F11.10
F11.11
F11.12
F11.13
F11.14
Reserved
System area
F11.15
Function
Description
F12.00
F12.01
F12.02
F12.03
F12.05
When the battery is not connected or the voltage is lower than the backup
voltage, the error LED flashes
F12.07
F12.08
Enables user-defined
communication
F12.09
Enables Modbus
communication
F12.10
F12.11
Indicates successful
saving of program to Flash
memory and booting
check
F12.12
F12.13
RTC Setting 1
On when you change the year, month, date, or day of the week.
F12.14
RTC Setting 2
On when you change the hour, minute, or second. Off when data setting is
done normally.
F12.15
Set to On when you want to save the program to the flash memory.
F13.00
F13.01
On when you restore the program that is backed up in the Flash memory to
SRAM.
F13.02
Reserved
System area
F13.03
Maintains the current communication speed via the COM1 port until the
power is turned off (Supported for CPU version V1.20 or higher)
F13.04
Maintain the current communication speed of the COM2 port until the
power is turned off (Supported for CPU versions V1.20 or higher)
Reserved
System area
F13.05 ~
F13.15
41
Function
F14.00
F14.01
F14.02
F14.03
42
Description
F14.04 to
F14.07
Loop1 PID control: The functions are the same with Loop0.
F14.08 to
F14.11
Loop2 PID control: The functions are the same with Loop0.
F14.12 to
F14.15
Loop3 PID control: The functions are the same with Loop0.
F15.00 to
F15.03
Loop4 PID control: The functions are the same with Loop0.
F15.04 to
F15.07
Loop5 PID control: The functions are the same with Loop0.
F15.08 to
F15.11
Loop6 PID control: The functions are the same with Loop0.
F15.12 to
F15.15
Loop7 PID control: The functions are the same with Loop0.
Function
Description
SR000 to SR004
W2560 to W2564
CPU status
SR005 to SR007
W2565 to W2567
Reserved
System area
SR008
W2568
PID control
SR009 to SR016
W2569 to W2576
Reserved
System area
SR017 to SR048
W2577 to W2608
Program error
information
SR049 to SR288
W2609 to W2848
Reserved
System area
SR289 to SR297
W2849 to W2857
RTC
SR298 to SR373
W2858 to W2933
User-defined
communication
SR374 to SR511
W2934 to W3071
Reserved
System area
43
W2560
Function
CPU ID number
Description
Indicates the CPU ID number in the lower 8 bits. 0 to 223 are the valid userdefined values, 255 is the default value.
Indicates current CPU information state. (run/stop/remote control/error)
03
MSB
02
01
00
Error = 1
SR001
W2561
CPU status
W2562
Watchdog time
SR003
W2563
Scan time
Indicates the scan time when executing a program. Updated at every scan
(module: msec)
SR004
W2564
SR005
~SR007
W2565
~W2567
Reserved
System area
SR008
W2568
PID control
Refer to the start address designation for the PID control function
SR009
~SR016
W2569
~W2576
Reserved
System area
Gives result of self-diagnosis by CPU. Indicates error content when
F0.0 is turned On and saves it.
MSB
SR017
W2577
System error
information.
Undefined instruction = 0N
Peripheral device fault = 0N
Misc. logic faults = 0N
Logic circuit fault = 0N
Microcomputer fault = 0N
SR018
W2578
Location of
undefined
instruction
Indicates the location of the instruction (the step number) that caused an
undefined instruction error during program execution.
SR019
W2579
Reserved
System area
SR020
W2580
Multiplication
Stores high order bit values upon executing 16 bit multiplication instructions.
SR021
W2581
Lower
remainder
Stores the low order bit value of remainder after a division instruction has been
executed.
SR022
W2582
Higher
remainder
Stores the high order bit value of the remainder after a division instruction has
been executed.
SR023
~SR029
W2583
~W2589
Reserved
System area
44
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.
SR030
W2590
Displays
error info.
Bit 8 = On if an error on external I/O address and bit/word/double word numbers used
occurs.
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
SR036
W2596
SR037
W2597
Program memory
SR038
W2598
Miscellaneous
SR039
W2599
Displays
SR040
W2600
CPU
SR041
W2601
Error info.
SR042
W2602
SR043
W2603
SR044
W2604
SR045
W2605
SR046
W2606
SR047
W2607
SR048
W2608
System area
System operation
The step number used for an I/O syntax error.
The step number used for a JMP/Call syntax error.
45
W2609 to
W2848
Function
Detail
Reserved
System area
Present
time
NOTE
Time
setting
Address
Details
Bit address
Description
15
14
13
12
11
10
SR28
9
W2849
Year (4-digit
BCD)
SR29
0
W2850
Date: day
SR29
1
W2851
Year: month
SR29
2
W2852
Second: 00
SR29
3
W2853
Hour: minute
SR29
4
W2854
Date: day
SR29
5
W2855
Year: month
SR29
6
W2856
Second: 00
SR29
7
W2857
Hour: minute
Function
Detail
SR298 to SR333
W2858 to W2893
SR334 to SR369
W2894 to W2929
SR370
W2930
SR371
W2931
SR372
W2932
SR373
W2933
46
Timer/Counter Area
Addresses for timer/counter set value and present value
Channel
Set value
(SV)
Present value
(PV)
Channel
Set value
(SV)
Present value
(PV)
Channel
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
W2048
W2049
W2050
W2051
W2052
W2053
W2054
W2055
W2056
W2057
W2058
W2059
W2060
W2061
W2062
W2063
W2064
W2065
W2066
W2067
W2068
W2069
W2070
W2071
W2072
W2073
W2074
W2075
W2076
W2077
W2078
W2079
W2080
W2081
W2082
W2083
W2084
W2085
W2086
W2087
W2304
W2305
W2306
W2307
W2308
W2309
W2310
W2311
W2312
W2313
W2314
W2315
W2316
W2317
W2318
W2319
W2320
W2321
W2322
W2323
W2324
W2325
W2326
W2327
W2328
W2329
W2330
W2331
W2332
W2333
W2334
W2335
W2336
W2337
W2338
W2339
W2340
W2341
W2342
W2343
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
W2088
W2089
W2090
W2091
W2092
W2093
W2094
W2095
W2096
W2097
W2098
W2099
W2100
W2101
W2102
W2103
W2104
W2105
W2106
W2107
W2108
W2109
W2110
W2111
W2112
W2113
W2114
W2115
W2116
W2117
W2118
W2119
W2120
W2121
W2122
W2123
W2124
W2125
W2126
W2127
W2344
W2345
W2346
W2347
W2348
W2349
W2350
W2351
W2352
W2353
W2354
W2355
W2356
W2357
W2358
W2359
W2360
W2361
W2362
W2363
W2364
W2365
W2366
W2367
W2368
W2369
W2370
W2371
W2372
W2373
W2374
W2375
W2376
W2377
W2378
W2379
W2380
W2381
W2382
W2383
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
W2384
W2385
W2386
W2387
W2388
W2389
W2390
W2391
W2392
W2393
W2394
W2395
W2396
W2397
W2398
W2399
W2400
W2401
W2402
W2403
W2404
W2405
W2406
W2407
W2408
W2409
W2410
W2411
W2412
W2413
W2414
W2415
W2416
W2417
W2418
W2419
W2420
W2421
W2422
W2423
47
Channel
Set value
(SV)
Present value
(PV)
Channel
Set value
(SV)
Present value
(PV)
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
159
160
161
162
163
164
W2168
W2169
W2170
W2171
W2172
W2173
W2174
W2175
W2176
W2177
W2178
W2179
W2180
W2181
W2182
W2183
W2184
W2185
W2186
W2187
W2188
W2189
W2190
W2191
W2192
W2193
W2194
W2195
W2196
W2197
W2198
W2199
W2200
W2201
W2202
W2203
W2204
W2205
W2206
W2207
W2208
W2209
W2210
W2211
W2212
W2213
W2424
W2425
W2426
W2427
W2428
W2429
W2430
W2431
W2432
W2433
W2434
W2435
W2436
W2437
W2438
W2439
W2440
W2441
W2442
W2443
W2444
W2445
W2446
W2447
W2448
W2449
W2450
W2451
W2452
W2453
W2454
W2455
W2456
W2457
W2458
W2459
W2460
W2461
W2462
W2463
W2464
W2465
W2466
W2467
W2468
W2469
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
W2214
W2215
W2216
W2217
W2218
W2219
W2220
W2221
W2222
W2223
W2224
W2225
W2226
W2227
W2228
W2229
W2230
W2231
W2232
W2233
W2234
W2235
W2236
W2237
W2238
W2239
W2240
W2241
W2242
W2243
W2244
W2245
W2246
W2247
W2248
W2249
W2250
W2251
W2252
W2253
W2254
W2255
W2256
W2257
W2258
W2259
W2470
W2471
W2472
W2473
W2474
W2475
W2476
W2477
W2478
W2479
W2480
W2481
W2482
W2483
W2484
W2485
W2486
W2487
W2488
W2489
W2490
W2491
W2492
W2493
W2494
W2495
W2496
W2497
W2498
W2499
W2500
W2501
W2502
W2503
W2504
W2505
W2506
W2507
W2508
W2509
W2510
W2511
W2512
W2513
W2514
W2515
Channel
Set value
(SV)
Present value
(PV)
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
W2260
W2261
W2262
W2263
W2264
W2265
W2266
W2267
W2268
W2269
W2270
W2271
W2272
W2273
W2274
W2275
W2276
W2277
W2278
W2279
W2280
W2281
W2282
W2283
W2284
W2285
W2286
W2287
W2288
W2289
W2290
W2291
W2292
W2293
W2294
W2295
W2296
W2297
W2298
W2299
W2300
W2301
W2302
W2303
W2516
W2517
W2518
W2519
W2520
W2521
W2522
W2523
W2524
W2525
W2526
W2527
W2528
W2529
W2530
W2531
W2532
W2533
W2534
W2535
W2536
W2537
W2538
W2539
W2540
W2541
W2542
W2543
W2544
W2545
W2546
W2747
W2548
W2549
W2550
W2551
W2552
W2553
W2554
W2555
W2556
W2557
W2558
W2559
48
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.
Memory area
Special
internal
contact
Data area
T/C
set value
T/C
present value
Status
display
Absolute address
Register
address
Dec.
Hex.
F0000
448
F0001
Absolute address
Register
address
Dec.
Hex.
01C0
R0000
0000
449
01C1
R0001
0001
F0002
450
01C2
R0002
0002
...
...
...
...
...
...
F0014
462
01CE
R0126
126
007E
F0015
463
01CF
R0127
127
007F
W0000
512
0200
L0000
128
0080
W0001
513
0201
L0001
129
0081
W0002
514
0202
L0002
130
0082
...
...
...
W512
1024
0400
Memory area
External I/O
Link area
...
...
...
L0062
190
00BE
...
...
...
L0063
191
00BF
W1024
1536
0600
M0000
192
00C0
...
...
...
M0001
192
00C1
W1536
2048
0800
M0002
194
00C2
...
...
...
M0003
195
00C3
W2046
2558
09FE
...
...
...
W2047
2559
09FF
M0064
256
0100
W2048
2560
0A00
M0065
257
0101
W2049
2561
0A01
...
...
...
...
...
...
M0126
318
013E
W2303
2815
0AFF
M0127
319
013F
W2304
2816
0B00
K0000
320
0140
W2305
2817
0B01
K0001
321
0141
...
...
...
K0002
322
0142
W2559
3071
0BFF
K0003
323
0143
SR000
3072
0C00
...
...
...
SR001
3073
0C01
...
...
...
K0126
446
01BE
SR511
3583
0DFF
K0127
447
01BF
Internal
contact
Internal Keep
contact
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
1 word display
4
Word absolute address
0
Bit number
For example, the absolute bit address for K12712 internal contact is $1BFC
(hex). (Word absolute address = $01BF + Bit number = $C = $1BFC)
49
Status LEDs
Operation mode selector
RMT (REMOTE)
PROG
IMPORTANT
LED status
Operation
mode
RUN
PROG
Program
change
Data change
Operation mode at
power off to on
RUN
Disabled
Enabled
RUN
STOP
Disabled
Enabled
RUN
RUN
Enabled
Enabled
RUN
PAUSE
Enabled
Enabled
PAUSE
STOP
Enabled
Enabled
STOP
50
RUN
RUN
PAUSE
RMT
STOP
PROG
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.
51
52
53
5
Programming Instructions
IMPORTANT
Refer to the LX7/LX70 Instruction Set Reference Manual for detailed information on
the LX7 and LX70 instruction set and for application examples to show the instruction
set in use.
Name
Ladder Symbol
Description
STR
Start
Starts contact A.
STN
Start Not
Starts contact B.
AND
And
ANN
And Not
OR
Or
ORN
Or Not
OUT
Out
(
O
U
T
)
SET
Set
(
S
E
T
)
RST
Reset
NOT
Not
STR DIF
Start Differential
STR DFN
AND DIF
And Dif.
AND DFN
OR DIF
Or Dif
OR DFN
Or Dif. Not
ANB
And Block
ORB
Or Block
MS
MR
MCS
MCR
Extension
Inverts circuit.
(
M
S
)
( .)
.
)
)
)
)
)
(
M
R
) (for processor version 2.0 or higher)
>
>
53
TIM
Name
Ladder Symbol
TI M
On Delay Timer
Ch=00010
SV=00050
TOF
SST
TOF
Ch=00064
SV=00005
SST
Single Shot
Timer
Ch=00100
SV=00005
UC
UC
Up Counter
U Ch =0 2 0
SV=0 0 4
R
DC
DC
Down Counter
D Ch =0 2 1
S V=0 0 5
R
Ring Counter
Remarks
o u tpu t
5se c
T Ch =0 2 2
S V=0 0 4
o u tpu t
5se c
5 sec
Up counter
In p ut
S e t va lu e
C u rre nt va lue
UDC
UDC
Up-Down
Counter
S V= 0 0 3
Ou tp u t
Down counter
In p ut
C u rre nt
va lue
Ou tp u t
Ring counter
In p ut
S e t va lu e
C u rre nt
va lue
Up-Down counter
U In p ut
D In p ut
S e t va lu e
SR
Eb = K2 . 5
54
Shift Register
I S b = K1 . 4
P
R e se t
Shift Register
Ou tp u t
SR
C u rre nt
va lue
R e se t
R e se t
U Ch =0 2 3
In p ut
Ou tp u t
In p ut
o u tpu t
In p ut
R e se t
RCT
RCT
Description
Sb
.
..
.
.
Eb
K1.4
...
...
K2.5
I
I =va lu e
Comparison Instructions
Mnemonic
Name
STR ==
START ==
AND ==
AND ==
OR ==
Word ladder
symbol
Double word
ladder symbol
Description
==
D==
On if A is equal to B.
OR ==
A=
B=
A=
B=
STR <>
START <>
<>
D<>
AND <>
AND <>
OR <>
OR <>
A=
B=
A=
B=
STR >
START >
AND >
>
D>
AND >
OR >
OR >
A=
B=
A=
B=
STR >=
START >=
AND >=
>=
D>=
AND >=
OR >=
OR >=
A=
B=
A=
B=
STR <=
START <=
<=
D<=
AND <=
AND <=
OR <=
OR <=
A=
B=
A=
B=
STR <
START <
AND <
AND <
<
D<
OR <
OR <
A=
B=
A=
B=
IMPORTANT
On if A is not equal to B.
<> is same with .
A and B are word/double word or data
value
On if A is greater than B.
On if A is less than B.
For double word comparison instructions, the letter D should precede the word
comparison instructions in the Mnemonic program.
Name
Word ladder
symbol
Double word
ladder symbol
Description
LET
(DLET)
Let
(Substitution)
INC
(DINC)
Decimal increment
INCB
(DINCB)
BCD increment
DEC
(DDEC)
Decimal decrement
DECB
(DDECB)
BCD decrement
55
Arithmetic Instructions
Mnemonic
Word ladder
symbol
Double word
ladder symbol
Description
ADD
Decimal
D = S1 + S2
(DADD)
addition
(Decimal operation)
ADDB
(DADDB)
SUB
(DSUB)
SUBB
(DSUBB)
MUL
(DMUL)
MULB
(DMULB)
DIV
(DDIV)
DIVB
(DDIVB)
ADC
(DADC)
ADCB
(DADCB)
SBC
(DSBC)
SBCB
(DSBCB)
ABS
(DABS)
56
Name
BCD addition
Decimal
subtraction
BCD subtraction
D = S1 + S2
(BCD operation)
D = S1 - S2
(Decimal operation)
D = S1 - S2
(BCD operation)
Decimal
multiplication
D = S1 x S2
BCD
multiplication
D = S1 x S2
Decimal division
BCD division
(Decimal operation)
(BCD operation)
D = S1/S2 (Decimal operation),
Error when S2= 0
D = S1/S2 (BCD operation)
Error when S2 = 0
Decimal addition
with carry
D = S1 + S2 + CY
D = S1 + S2 + CY
Decimal
subtraction with
carry
D = S1 - S2 CY
BCD subtraction
with carry
D = S1 - S2 - CY
Absolute value
WNOT
NOT
(DNOT)
(1s complement)
NEG
Negative
Store 2s complement of D in D
(DNEG)
(2s complement)
Store 1s complement of D in D
Logical Instructions
Mnemonic
Name
Word ladder
symbol
Double word
ladder symbol
Description
Store AND of S1 and S2 in D
WAND
(DAND)
AND (logical
multiply)
Store OR of S1 and S2 in D
WOR
(DOR)
OR (logical sum)
WXOR
(DXOR)
Exclusive OR
(exclusive
logical sum)
WXNR
(DXNR)
Exclusive OR
NOT
(equivalence)
Rotation Instructions
Mnemonic
Instruction
RLC
(DRLC)
RRC
(DRRC)
Rotates right
without carry
ROL
(DROL)
Word ladder
symbol
Double word
ladder symbol
Description
Rotate the content of D to the left N
times. (lower->higher)
SHL
(DSHL)
Shift left
SHR
(DSHR)
Shift right
ROR
(DROR)
57
BCD
(DBCD)
BIN
(DBIN)
Name
BCD
Conversion
Binary
Conversion
Word ladder
symbol
Double word
ladder symbol
Description
Convert binary value of S to BCD and
store it in D.
Encode
Decode
7-Segment
Exchange
Dissemble
58
Unify
Name
Word ladder
symbol
Double word
ladder symbol
Description
Set Nth bit of D to 1.
BSET
Bit Set
Bit Reset
Bit Not
Bit Test
Sum
Set Carry
Reset Carry
CC
Complement
Carry
59
Move Instructions
Mnemonic
Name
Word ladder
symbol
Double word
ladder symbol
Description
Copy Ns words from Sr to D.
MOV
Move
Fill Move
BFMV
LDR
(DLDR)
Bit Move
60
Store (D) S
Name
Word ladder
symbol
Double word
ladder symbol
Description
FOR
(DFOR)
For Loop
NEXT
Next
JMP
Jump
LBL
Label
JMPS
Jump Start
JMPE
Jump End
CALL
Call
Subroutine
SBR
Subroutine Start
RET
Subroutine
Return
INT
Begin
Interrupt
RETI
Return Interrupt
61
INPR
Name
Input Refresh
Word ladder
symbol
Double word
ladder symbol
Description
Refresh external input (Receive input
signal during program execution).
Ch is external input word address.
OUTR
Output Refresh
62
WAT
Watchdog Timer
END
END
6
Special Functions
Input terminal
Address
Signal
Description
Stores the preset value as the counters present value.
R0.0
HSC, Preset
R0.1
HSC, Inhibit
R0.2
HSC, IN 0
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.)
(Operates only when R40.10 is set.)
When setting Mode 0, input counter pulse.
When setting Mode 2, input encoder phase A.
When setting Mode 0, input counter direction.
R0.3
HSC, IN 1
63
Signal
Description
Bit no.
15
14
13
12
11
10
Reserved
Sets software preset function
Sets the use of R0.3 (input direction/phase B)
R40
High-speed
counter mode
setting
= Sets mode 0= pulse input mode (input R0.2 = pulse, R0.3 = direction)
R41
Reserved
R42
CH0 PV_LO
R43
CH0 PV_HI
R44
CH0 STR_LO
R45
CH0 STR_HI
R46 ~ 55
Reserved
R56
H0 SV_LO
R57
H0 SV_HI
R58
Reserved
R59
Reserved
R60
CH0
CATCH_LO
Stores the present value (low word) at the point of inputting the preset (H0 PV_LO)
R61
CH0
CATCH_HI
Stores the present value (high word) at the point of inputting the preset (H0 PV_HI)
R62~64
Reserved
Address
64
Signal
Description
R65.0
HSC Enable
R65.1
Reserved
R65.2
HSC Start
R65.3
Reserved
R65.4~5
Reserved
R65.6
Ring Counter
R65.7
Reserved
Setting
Description
R65.0
R65.2
Word R40
15
14
13
12
11
10
Bit no.
Reserved
Sets the use of R0.3 (input direction)
(input 1= Increase/decrease mode, 0=Increase mode)
Sets the use of R0.2 (input pulse)
Sets the use of R0.1 (input count inhibit)
Sets the use of R0.0 (input preset)
=Sets mode 0= pulse input mode (input R0.2 = pulse, R0.3 = direction)
Sets ring counter (input '1' = enable, '0' = disable)
Setting
Description
R0.0
Stores the preset as the counters present value (Operates at a rising edge)
R0.1
Inputs count inhibit (The counter stops when the contact is On.)
R0.2
R0.3
When setting Mode 0 (pulse input), inputs counter direction (Off = Increase,
On = Decrease)
65
Pulse input
(R0.2)
Direction input
(R0.3)
Forward direction
Reserve direction
Forward direction
Counter runs
Counting inhibit
(R0.1)
Counter inhibit
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.
Pulse input
Direction input
66
R65.0
SET
R65.2
SET
Pulse
input
mode
setting
LET
D = R40
S = $0F00
D>=
R16.0
OUT
A = R42
B = 10000
Setting
Description
R65.0
R65.2
15
Word R40
14
13
12
11
10
Bit no
Reserved
Sets the use of R0.3 (input phase B) (set to 1)
Sets the use of R0.2 (input phase A) (set to 1)
Sets the use of R0.1 (input count inhibit)
Sets the use of R0.0 (input preset)
Setting
Description
R0.0
R0.1
Inputs count inhibit (The counter stops when the contact is On.)
R0.2
R0.3
67
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).
OV
For 28 and
48 points
R65.0
SET
R65.2
SET
LET
D = R40
S = $2F00
D>=
D<
A = R42
B = 10000
A = R42
B = 20000
R16.0
OUT
68
Encode
input
mode
setting
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
PLC scan
Input
update
Program execution
Output
update
Other
Input
update
Program execution
Output
update
Other
400 s or more
Pulse input
R66.0
R66.1
< SET >
R66.4
< SET >
R66.5
< SET >
69
Signal
Description
Pulse output channel 0, control register
15 14 13 12 11 10
9
Bit no
0
Reserved
Sets the use of R16.2 output direction
(use 1 = direction output, 0 = general contact)
1
R80
R81
R82
(-R83)
Pulse output
Channel 0
Mode setting
CH0 FREQ.
CH0 DUTY or
CH0 SV (Pulse
numbers)
R84(-R85) CH0 PV
Reserved
Controls R16.2 direction mode output (use 1 = high, 0 = low)
0
Reserved
Indicates Run/Stop of pulse output
(display On when the pulse output is operating)
* Sets pulse output frequency
- Output frequency: 20 to 5,000 Hz
* Sets pulse output duty ratio or output pulse numbers
- For PWM mode, sets duty ratio (25% to 75%)
- For Pulse + Dir, sets output pulse numbers
Indicates the number of pulses from channel 0
Pulse output channel 1, control register
15
14
13
12
11
10
Bit no
0
Reserved
1
R90
Pulse output
Channel 1
Mode setting
Reserved
Controls R16.3 direction mode output (use 1 = high, 0 = low)
0
Reserved
Indicates RUN/STOP status of pulse output
(display On when the pulse output is operating)
R91
R92
(-R93)
CH1 FREQ.
CH1 DUTY or
CH0 SV
(Number of
pulses)
R94(-R95) CH1 PV
NOTE
70
Pulse acceleration/deceleration designation area (supports version 1.20 or higher in pulse mode)
Address
Signal
Description
R86
R87
Number of increased
pulse for CH0
R88
Number of decreased
pulse for CH0
R96
R97
Number of increased
pulse for CH1
R98
Number of decreased
pulse for CH1
Signal
Description
R16.0
CH0_PLS
R16.1
CH1_PLS
R16.2
CH0_DIR
R16.3
CH1_DIR
R64.0
PLS 0_EN
Determines the use of pulse output (CH0) function (1 = for pulse, 0 = for contact
point)
R64.1
PLS 1_EN
Determines the use of pulse output (CH1) function (1= for pulse, 0 = for contact
point)
R64.2
PULSE_CH0_START
R64.3
PULSE_CH1_START
71
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, 6 kHz, and 50% duty ratio
- P0 MODE (R80) = $3200 (0011 0010 0000 0000)
- P0 FREQ (R81) = 6000
- P0 DUTY (R82) = 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 6 kHz goes to
CH0.
R64.0
LET
D= R80
S = $3200
LET
D = R81
S = 6000
LET
D = R82
S = 50
M000.0
R64.2
72
LET
D=R36
S=$0B00
LET
D = R37
S = 3000
LET
D = R38
S = 500
F001.04
R64.3
73
R64.1
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
F000.15
TC000
TIM
CH = 0
SV= 300
TC000
R64.3
74
Appendix
Using LXsoft
PLC (LX7)
PC
RXD
TXD
TXD
RXD
DTR
RTS
GND
GND
DSR
485-
RTS
485+
CTS
CTS
Vcc
- PC communication port
setting (COM1 to 4)
- Communication speed
(38400 to 4800)
PLC FG (CASE)
- No access to communications
of other software
PLC setting
- Front com. terminal Off
(RS232C)
(Maintains the speed
once connected)
e
< Communication cable >
LX_CBLCPU02 (2 m),
LX_CBLCBLCPU05(5 m)
MJ Terminal
h
< RS-232C communication cable >
Produced on order
- Communication
speed (38400 to 4800)
- No access to communications
of other software
PC
6
7
8
9
PLC (LX7/LX7s)
(Modular jack)
1
2
3
4
NO
Signal
485+
485-
485+
485-
Reserved
0V(GND)
232C/RXD
232C/TXD
RXD
TXD
GND
TXD
RXD
GND
8
7
75
PC (9-pin female)
MJ
In case of an
End-station terminal
76
TXD
RXD
RXD
TXD
GND
GND
proceed.
Initialization
Since the PLCs 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.
l
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.
77
78
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.
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.
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.
79
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.
80
First, set the PLC operation switch to PROG, and select the `Online' button
from the displayed icons. Select 'LXsoft==>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.
81
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 LX7 and LX7s 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.
82
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.
83
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.
84
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 LXsoft, click Online |
System Information | Password and then enter a new password. The
password may include any combination of numbers and special characters.
You must enter exactly 4 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.
85
86
www.L&T.com
Publication LX7-UM001C-EN-P-April 2006