Atlogic EN ProgrammingManu-V1 1-1907 190708 W
Atlogic EN ProgrammingManu-V1 1-1907 190708 W
Atlogic EN ProgrammingManu-V1 1-1907 190708 W
Software
atLogic
V2.2.48
www.autonics.com
2 © Copyright Reserved Autonics Co., Ltd.
Preface
Preface
Thank you for purchasing Autonics product.
This programming manual contains information about the product and its proper use, and should
be kept in a place where it will be easy to access.
Symbol Description
※1 Annotation mark.
Project Upload/Download
Table of Contents
Preface .............................................................................................................................iii
atLogic Programming Manual Guide .............................................................................. iv
atLogic Programming Manual Symbols ........................................................................... v
Reference Manual for Each Configuration ...................................................................... vi
Table of Contents ........................................................................................................... vii
1 Overview .................................................................................................... 1
1.1 Feature of atLogic .............................................................................................. 1
1.2 Program Structure and Operation ..................................................................... 2
1.2.1 Program Structure ....................................................................................... 2
1.2.2 Program Operation ...................................................................................... 2
5 Instruction.............................................................................................. 55
5.1 Structures of Instruction Name ....................................................................... 55
5.1.1 Structure by Data Type ............................................................................ 55
5.2 Basic Instruction List .......................................................................................57
5.2.1 Non Processing Instruction ..................................................................... 57
5.2.2 Contact Instruction .................................................................................. 57
5.2.3 Output Instruction .................................................................................... 58
5.2.4 Reversal Instruction ................................................................................. 59
5.2.5 Stack Instruction ...................................................................................... 59
5.2.6 Exit Instruction ......................................................................................... 59
5.3 Application Instruction list ...............................................................................60
5.3.1 Count Instruction ..................................................................................... 60
5.3.2 Timer Instruction ...................................................................................... 60
5.3.3 Control Instruction ................................................................................... 61
5.3.4 Branch Instruction ................................................................................... 61
5.3.5 Loop Instruction ....................................................................................... 61
5.3.6 Master Control Instruction ....................................................................... 62
5.3.7 Interrupt Instruction ................................................................................. 62
5.3.8 Watchdog Timer ...................................................................................... 63
5.3.9 Input Comparison Instruction .................................................................. 64
5.3.10 Comparison Instruction ........................................................................... 67
5.3.11 Transmission Instruction ......................................................................... 68
5.3.12 Exchange Instruction ............................................................................... 70
5.3.13 Rotation Instruction ................................................................................. 70
5.3.14 Movement Instruction .............................................................................. 72
5.3.15 Arithmetic Operation Instruction .............................................................. 73
5.3.16 Logical Operation Instruction .................................................................. 77
5.3.17 BIN/BCD Instruction ................................................................................ 79
5.3.18 String Conversion Instruction .................................................................. 79
5.3.19 Code Conversion Instruction ................................................................... 80
5.3.20 Sign Reversal Instruction ........................................................................ 81
5.3.21 Data Conversion Instruction .................................................................... 81
5.3.22 Refresh Instruction .................................................................................. 81
5.3.23 Display Instruction ................................................................................... 82
5.3.24 Clock Instruction ...................................................................................... 82
5.3.25 Motion Instruction .................................................................................... 83
5.3.26 High-speed Counter Instruction .............................................................. 84
5.4 Basic Instruction .............................................................................................85
5.4.1 Non Processing Instruction (NOP) .......................................................... 85
5.4.2 Contact Instruction (LOAD) ..................................................................... 86
5.4.3 Contact Instruction (LOADN)................................................................... 87
5.4.4 Contact Instruction (LOADP) ................................................................... 88
1 Overview
2 Create Program
LP program performs input refresh before starting its operation, and begins operation work from
the step 0 one by one. Then it executes output refresh after performing the END instruction.
Through all these procedures, finally one scan is completed.
Refresh input: Before executing the program operation, it reads the data from the input
contact or module and saves it in designated device area(X Device).
Refresh output: After completing the program operation, it outputs the data from designated
area(Y Device) to the output contact or output module.
Refresh input and output: Refresh input and output is executed by force at the time to
perform the instruction.
If the END instruction executes while the program is being processed, it exits the operation
without performing the below program.
As above example for interrupt program, programs containing interrupt, subroutine and user
defined functions, firstly jump to the subroutine and perform it completely, and then go to the
main program again, finally keep continuing to execute the program from the next step of
the stopped step.
No. Description
① Input is OFF.
② It is not time to refresh input, input is OFF.
It is ON at the time to refresh input, input is ON. But the length of input signal is shorter
③
than scan cycle, it may not recognize as ON depending on the time to refresh input.
Because the input retains ON during a cycle of scan regardless of refreshing input time.
④ ※The minimum input retaining time of LP series is 1ms. Even though the input is entered
at the time of refreshing input, the input is invalid if it is not able to maintain for 1ms.
The program is processed as above, therefore in case of input/output the response delay may
be occurred due to operation time. If you need to perform input/output processing while program
is being operated, it is available with using REF instructions(Refresh input/output).
Dual coil
2) When the same device of counter or timer is used as timer/counter instruction more
than twice in a program.
Not dual coil
Dual coil
It is not regard as dual coil when the same device is used in other instructions.
2nd Select [Tool]-[Register User Defined Function] of menu, press Shift + F10, or click
of ladder tool bar. ‘Register User Defined Function’ dialog box appears.
No. Description
① Input a user defined function name.
② Set the number of operands to use.
Set the number of each operand’s device as much as the designated
③
number of operands.
④ Describe for the user defined functions you want to register.
3rd If click “OK” button after completing above process, the user defined function is
registered. The registered user defined function is stored with the function name.lib
file in \LIB folder.
No. Description
① Displays the selected user defined function name.
② Displays user defined functions stored in the designated folders.
③ Displays used device in the selected user defined function.
④ Displays registered description for the selected user defined function.
2nd User defined functions are applied when click ‘Select’. If user defined function or
operand is not entered correctly, and when you click ‘Select’, ‘Function List’ dialog
box is not closed and user defined function is not applied to ladder program.
Click ‘Cancel’ and the user defined functions list is closed automatically regardless of
whatever you input.
3rd In the place where call the function, call with FCALL instruction, and in the place
where the function is called, is called with FUNC instruction.
2.9 Notice
(1) Input/Output processing and response delay
3 Device
3.1 X Device
X input device is a device that transfers the signal inputted from an external switch or a button to
CPU.
It is able to use A(Normally Open) or B(Normally Closed)Contacts in the program, and also
available to with pulse inputs for the contact.
X input device, which is not connected with input terminal, is able to be used as the same
function as an inner auxiliary device(M Device).
Because input contact is only retained by external input, be sure that if you want to use it as an
external output.
3.2 Y Device
Y output device is a device that transfers the inner processing result to externally connected
output devices.
Y device, which is not connected with output terminal, is able to be used as the same function as
an inner auxiliary device(M Device).
In case the output device is allocated to an actual external contact and the same output contact
is used more than twice to the operand of out instruction in a program, the last used output is
output to outside. For further details, refer to ‘2.5 Dual Coil’.
3.3 M Device
It is an inner auxiliary device of LP.
It is only able to perform in the program, not able to directly output to outside of LP. It is available
to be used as a memory protection device by setting ‘Device Latch Range Settings’ in
[Parameter]-[COMMON].
3.4 S Device
It is a step device.
It is a device to control step and used with OUT, SET and RESET instructions. When it is used
with SET or RESET instruction, the previous step must be performed first to execute the current
step. When it is used with OUT instruction, it executes the last step turned “On” regardless of the
order of step.
It is unavailable to be used as a word device, only can be used as a bit device. It is available to
be used as a memory protection device by setting ‘Device Latch Range Settings’ in [Parameter]-
[COMMON]. The clear condition, SET XXX.00, is able to execute anytime regardless of the
processing steps.
3.5 D Device
It is a data device of LP.
It is only able to be used as a word bit, not able to be used as a bit device. When it is used as
the 32 bit instruction, D word is operated as lower 16 bit and D+1 word is operated as upper 16
bit as following picture.
It is available to be used as a memory protection device by setting ‘Device Latch Range Settings’
in [Parameter]-[COMMON].
3.6 T Device
It is a device used with instructions related to Timer.
It consists of three parts; timer contact, timer setting value, timer present value.
Timer contact performs ON/OFF functions according to the result of timer instruction and also
available to be used as timer and input instructions.
Timer setting value is a place where a boundary value for the result of timer is saved, and is
available to be used with timer and application instructions.
Timer present value is a place where a present value is stored while timer is operating, and user
can not set it up directly.
When as following picture, if inputting 100 to “T0” setting value device, “T0” timer contact device
turns ON when “T0” present value device becomes 100.
Timer instructions, related to LP Series are TON, TOFF, TMON, TRTG and TMR, and even the
same timer device is operated differently depending on each instruction.
The basic cycle of timer device is 10ms, but it is available to be operated in 10ms or 100ms by
setting up the device range in parameters.
It is available to be used as a memory protection device by setting ‘Device Latch Range Settings’
in [Parameter]-[COMMON].
For furter details of timer device, refer to ‘5.3.2 Timer ’.
3.7 C Device
It is a device used with the instructions related to Counter.
It consists of three parts; counter contact, counter setting value, and counter present value.
Counter contact performs ON/OFF functions according to the result of counter instructions, and
also available to be used as counter and input instructions.
Counter setting value is a place where a boundary value for the result of count is stored, and is
available to be used with counter and application instructions.
Counter present value is a place where a present value is stored while counter is operating, and
user can not set it up directly.
When as following picture, if inputting 100 to “C0” setting value device, “C0” contact device turns
ON when “C0” present value device becomes 100.
Counter instructions, related to LP Series are CTD, CTU, CTUD and CTR, and even the same
counter device is operated differently depending on each instruction.
3.8 Z Device
It is a device that is able to designate indirectly a device with using other word device.
When as following picture, if “D0” device value is 10, the value 10 stored in “D0” is transferred to
D(0+Z0) device, namely D100 device.
3.9 F Device
It is a device that sets up the status and operation of LP.
It designates a device that is able to be used separately in input and output instructions, and not
able to be used as a memory protection area.
For further details of F device, refer to ‘4 Special ’.
3.10 V Device
It is the used area for matched automatically device area by system when using user defined
function. User can not use this device area.
3.11 L Device
It is a link device. It is a device sharing link data each other when communicating with other
module.
It is available to be used as a memory protection device by setting ‘Device Latch Range Settings’
in [Parameter]-[COMMON].
3.12 R Device
It is a device used when using the recipe function of graphic panel in LP series.
It is available to be used as a memory protection device by setting ‘Device Latch Range Settings’
in [Parameter]-[COMMON].
3.13.1 LP-S044/LP-S070
Word
Description Bit range GP device(UB) GP device (UW)
range
X0 to UB70000 to UW7000 to
X Input device X0 to X255
X255F UB7255F UW7255
Y0 to UB80000 to UW8000 to
Y Output device Y0 to Y255
Y255F UB8255F UW8255
M0 to M0 to UB200000 to UW20000 to
M Auxiliary device
M9999F M9999 UB29999F UW29999
S0.0 to
S Step device
S255.99
D0 to D0 to UB400000 to UW40000 to
D Data device
D9999F D9999 UB49999F UW49999
UB100000 to UW10000 to
T Timer contact T0 to T255
UB10015F UW10015
Timer present UB110000 to UW11000 to
T T0 to T255
value UB11255F UW11255
UB130000 to UW13000 to
T Timer set value T0 to T255
UB13255F UW13255
UB150000 to UW15000 to
C Counter contact C0 to C255
UB15015F UW15015
Counter present UB160000 to UW16000 to
C C0 to C255
value UB16255F UW16255
Counter set UB180000 to UW18000 to
C C0 to C255
value UB18255F UW18255
Z0 to UB067000 to UW06700 to
Z Index device Z0 to Z255
Z255F UB06955F UW06955
F0 to UB064000 to UW06400 to
F Special device F0 to F255
F255F UB066550F UW06655
V0 to UB061000 to UW06100 to
V Virtual device V0 to V255
V255F UB06355F UW06355
L0 to UW38000 to
L Link device L0 to L999
L999F UW38999
R0 to R0 to UB020000 to UW02000 to
R File device
R3999F R3999 UB05999F UW05999
UW UB000000 to UW00000 to
Read area
/UB UB00014F UW00014
UW UB000015 to UW00015 to
Write area
/UB UB00029F UW00029
UW UB000030 to UW00030 to
User area
/UB UB01999F UW01999
3.13.2 LP-A070/LP-A104
GP device GP device
Description Bit range Word range
(UB) (UW)
UB70000 to UW7000 to
X Input device X0 to X255F X0 to X255
UB7255F UW7255
UB80000 to UW8000 to
Y Output device Y0 to Y255F Y0 to Y255
UB8255F UW8255
M0 to UB200000 to UW20000 to
M Auxiliary device M0 to M9999F
M9999 UB29999F UW29999
S Step device S0.0 to S255.99
UB400000 to UW40000 to
D Data device D0 to D9999F D0 to D9999
UB49999F UW49999
UB100000 to UW10000 to
T Timer contact T0 to T255
UB10015F UW10015
Timer present UB110000 to UW11000 to
T T0 to T255
value UB11255F UW11255
UB130000 to UW13000 to
T Timer set value T0 to T255
UB13255F UW13255
UB150000 to UW15000 to
C Counter contact C0 to C255
UB15015F UW15015
Counter present UB160000 to UW16000 to
C C0 to C255
value UB16255F UW16255
Counter set UB180000 to UW18000 to
C C0 to C255
value UB18255F UW18255
UB067000 to UW06700 to
Z Index device Z0 to Z255F Z0 to Z255
UB06955F UW06955
UB064000 to UW06400 to
F Special device F0 to F255F F0 to F255
UB066550F UW06655
UB061000 to UW06100 to
V Virtual device V0 to V255F V0 to V255
UB06355F UW06355
UW38000 to
L Link device L0 to L999F L0 to L999
UW38999
R0 to UB020000 to UW02000 to
R File device R0 to R3999
R3999F UB05999F UW05999
UW UB000000 to UW00000 to
Read area
/UB UB00014F UW00014
UW UB000015 to UW00015 to
Write area
/UB UB00029F UW00029
UW UB000030 to UW00030 to
User area
/UB UB01999F UW01999
4 Special Device
4.1 LP-S044/LP-S070
Initial GP LP
Name Function R/W
value device device
‘EXTENSION’ tab from atLogic’s
Parameter.
When user does not turn OFF, this bit
maintains.
Initial GP LP
Name Function R/W
value device device
SLOT 10 Turns OFF, when SLOT10 parameter
does not use inner device
Turns ON, when SLOT11 parameter
Using inner uses more than one inner device
device of OFF R UB6404B F0004B
SLOT 11 Turns OFF, when SLOT11 parameter
does not use inner device
Turns ON, when SLOT12 parameter
Using inner uses more than one inner device
device of OFF R UB6404C F0004C
SLOT 12 Turns OFF, when SLOT12 parameter
does not use inner device
Turns ON, when SLOT13 parameter
Using inner uses more than one inner device
device of OFF R UB6404D F0004D
SLOT 13 Turns OFF, when SLOT13 parameter
does not use inner device
Turns ON, when SLOT14 parameter
Using inner uses more than one inner device
device of OFF R UB6404E F0004E
SLOT 14 Turns OFF, when SLOT14 parameter
does not use inner device
Turns ON, when SLOT15 parameter
Using inner uses more than one inner device
device of OFF R UB6404F F0004F
SLOT 15 Turns OFF, when SLOT15 parameter
does not use inner device
Initial GP LP
Name Function R/W
value device device
10ms clock 10ms cycle of system clock occurs R UB64054 F00054
20ms clock 20ms cycle of system clock occurs R UB64055 F00055
50ms clock 50ms cycle of system clock occurs R UB64056 F00056
100ms clock 100ms cycle of system clock occurs R UB64057 F00057
200ms clock 200ms cycle of system clock occurs R UB64058 F00058
500ms clock 500ms cycle of system clock occurs R UB64059 F00059
1s clock 1s cycle of system clock occurs R UB6405A F0005A
2s clock 2s cycle of system clock occurs R UB6405B F0005B
5s clock 5s cycle of system clock occurs R UB6405C F0005C
10s clock 10s cycle of system clock occurs R UB6405D F0005D
60s clock 60s cycle of system clock occurs R UB6405E F0005E
4.1.1.7 Operation
Initial GP LP
Name Function R/W
value device device
Turns ON, when operation result is 0
Zero flag Turns OFF, when operation result is OFF R UB64060 F00060
not 0
Turns ON, when carry occurs as
operation result
Carry flag OFF R UB64061 F00061
Turns OFF, when carry does not occur
as operation result
Turns ON, when borrow occurs as
operation result
Turns OFF, when borrow does not
Borrow flag OFF R UB64062 F00062
occur as operation result
Turns OFF, when changing program
or mode
Turns ON, when operation error occurs
during scan operation
Operation Turns OFF, when changing the other
mode except stop mode
error flag OFF R UB64068 F00068
Turns OFF, when there is no operation
(At present) error after one scan operation
Turns OFF, when downloading program
or re-setting power
Operation Retains ON, when operation error
error flag occurs during scan operation OFF R UB64069 F00069
(Retaining) Turns OFF, when resetting power
Initial GP LP
Name Function R/W
value device device
SLOT15 module module register
function
GP LP
Name Function R/W
device device
1: Finishing drive
Finish driving of CH2 R UB64126 F126
0: Not finishing drive
Detecting S/W lower 1: Detecting S/W lower limit
R UB64127 F127
limit of Motion CH2 0: Not detecting S/W lower limit
UW6501
Displays the version of firmware by the F0101 to
System version R to
range of 5 word F0105
UW6505
Released date of the
Released year of the version R UW6506 F0106
version(Year)
Released month and date of the version.
Released date of the
Displays 4 digits, high 2 digits denotes R UW6507 F0107
version(Month, date)
month and low 2 digits denotes date.
4.1.2.3 Operation
GP LP
Name Function R/W
device device
Step operation
Present step which has operation error
generated error R UW6520 F0120
(At present) (It clears when changing PLC mode or program)
Step operation
First operation error step, (It clears when
generated error R UW6521 F0121
(Retaining) changing PLC mode or program)
4.1.2.4 Step
GP LP
Name Function R/W
Device device
Error step Stopped step by error at present R UW6530 F0130
Braked step during debug mode operation
Break step R UW6531 F0131
(It clears when changing PLC mode or program)
4.1.2.5 Diagnosis
GP LP
Name Function R/W
device device
Self-diagnosis error code Displays self-diagnosis error code R UW6540 F0140
UW6540
Type Cause of error
(F0140)
0X0010 Watchdog error Scan time excesses watchdog timer setting value
When a certain area of memory is the
0X0020 Memory error
un-approached state.
0x0021 Battery error When battery value is below the standard level
0x0022 RTC setting error Disable to set RTC and RTC operation error
When the program contains instructions that are not able
0X0030 Program instruction error
to read and inappropriate forms.
When there is not the instructions required to process the
0X0031 Program sequence error program, such as user defined functions, label name,
END, RET and IRET, etc.
When there are some problems in settings for common
0X0040 Parameter setting error
and expansion parameters.
When it operates longer than the given time-driven run-
0X0041 Time-driven error
time.
In case, the hardware constructions are different from
Extended module setting
0X0050 previous parameter settings when applying power again
error
and changing the mode.
Extended module attaching When the extended module is attached or removed in run
0X0051
and removing error mode.
0x0060 Communication fail error When it is received NAK and data format not able to read.
When there are some problems occurred in formats
Communication format
0x0061 (excess of limited range etc.) and CHECK SUM while
error
download and upload.
4.1.2.6 Time
GP LP
Name Function R/W
device device
Time setting
Save the setting value of year as BCD Data W UW6550 F0150
(Year)
Time setting
Save the setting value of month as BCD Data W UW6551 F0151
(Month)
Time setting
Save the setting value of date as BCD Data W UW6552 F0152
(Date)
Time setting
Save the setting value of hour as BCD Data W UW6553 F0153
(Hour)
Time setting
Save the setting value of minute as BCD Data W UW6554 F0154
(Min)
Time setting
Save the setting value of second as BCD Data W UW6555 F0155
(Sec)
Save the setting value of the day of week as BCD Data
Time setting 0: Sunday, 1: Monday, 2: Tuesday,
3: Wednesday, 4: Thursday, 5: Friday, W UW6556 F0156
(Day)
6: Saturday
4.2 LP-A070/LP-A104
Initial GP LP
Name Function R/W
value device device
Internal device range includes actual
unavailable range, this bit turns ON
when checking ‘Using Internal Device’
I/O setting of ‘I/O Contact Setting’ dialog box in
‘EXTENSION’ tab from atLogic’s OFF R UB744039 F00039
value errors
Parameter.
When user does not turn OFF, this bit
maintains.
Turns ON, when watch dog timer
Watch dog occurs UB74403
OFF R F0003A
timer error Turns OFF, when watch dog timer error A
clear
Initial GP LP
Name Function R/W
value device device
SLOT 8 does not use inner device
Initial LP
Name Function R/W GP device
value device
10ms clock 10ms cycle of system clock occurs R UB744050 F00050
20ms clock 20ms cycle of system clock occurs R UB744051 F00051
50ms clock 50ms cycle of system clock occurs R UB744052 F00052
100ms clock 100ms cycle of system clock occurs R UB744053 F00053
200ms clock 200ms cycle of system clock occurs R UB744054 F00054
500ms clock 500ms cycle of system clock occurs R UB744055 F00055
1s clock 1s cycle of system clock occurs R UB744056 F00056
2s clock 2s cycle of system clock occurs R UB744057 F00057
5s clock 5s cycle of system clock occurs R UB744058 F00058
10s clock 10s cycle of system clock occurs R UB744059 F00059
60s clock 60s cycle of system clock occurs R UB74405A F0005A
4.2.1.7 Operation
Initial GP LP
Name Function R/W
value device device
Turns ON, when operation result is 0
Zero flag Turns OFF, when operation result is OFF R UB744060 F00060
not 0
Turns ON, when carry occurs as
operation result
Carry flag OFF R UB744061 F00061
Turns OFF, when carry does not occur
as operation result
Turns ON, when borrow occurs as
operation result
Turns OFF, when borrow does not
Borrow flag OFF R UB744062 F00062
occur as operation result
Turns OFF, when changing program
or mode
Turns ON, when operation error occurs
during scan operation
Operation Turns OFF, when changing the other
mode except stop mode
error flag OFF R UB744068 F00068
Turns OFF, when there is no operation
(At present) error after one scan operation
Turns OFF, when downloading program
or re-setting power
Operation Retains ON, when operation error
error flag occurs during scan operation OFF R UB744069 F00069
(Retaining) Turns OFF, when resetting power
Initial GP LP
Name Function R/W
value device device
Initial GP LP
Name Function R/W
value device device
4.2.2.3 Operation
GP LP
Name Function R/W
device device
Step operation
Present step which has operation error
generated error R UW74520 F120
(At present) (It clears when changing PLC mode or program)
Step operation
First operation error step, (It clears when
generated error R UW74521 F121
(Retaining) changing PLC mode or program)
4.2.2.4 Step
GP LP
Name Function R/W
device device
Error step Stopped step by error at present R UW74530 F130
Braked step during debug mode operation
Break step R UW74531 F131
(It clears when changing PLC mode or program)
4.2.2.5 Diagnosis
GP LP
Name Function R/W
device device
Self-diagnosis error code Displays self-diagnosis error code R UW74540 F140
UW74540
Type Cause of error
(F140)
0X0010 Watchdog error Scan time excesses watchdog timer setting value
When a certain area of memory is the un-approached
0X0020 Memory error
state.
0x0021 Battery error When battery value is below the standard level
0x0022 RTC setting error Disable to set RTC and RTC operation error
When the program contains instructions that are not able
0X0030 Program instruction error
to read and inappropriate forms.
When there is not the instructions required to process the
0X0031 Program sequence error program, such as user defined functions, label name,
END, RET and IRET, etc.
When there are some problems in settings for common
0X0040 Parameter setting error
and expansion parameters.
When it operates longer than the given time-driven run-
0X0041 Time-driven error
time.
In case, the hardware constructions are different from
Extended module setting
0X0050 previous parameter settings when applying power again
error
and changing the mode.
Extended module attaching When the extended module is attached or removed in
0X0051
and removing error run mode.
When it is received NAK and data format not able to
0x0060 Communication fail error
read.
When there are some problems occurred in formats
Communication format
0x0061 (excess of limited range etc.) and CHECK SUM while
error
download and upload.
4.2.2.6 Time
GP LP
Name Function R/W
device device
Time setting
Save the setting value of year as BCD Data W UW6550 F0150
(Year)
Time setting
Save the setting value of month as BCD Data W UW6551 F0151
(Month)
Time setting
Save the setting value of date as BCD Data W UW6552 F0152
(Date)
Time setting
Save the setting value of hour as BCD Data W UW6553 F0153
(Hour)
GP LP
Name Function R/W
device device
Time setting
Save the setting value of minute as BCD Data W UW6554 F0154
(Min)
Time setting
Save the setting value of second as BCD Data W UW6555 F0155
(Sec)
Save the setting value of the day of week as BCD Data
Time setting 0: Sunday, 1: Monday, 2: Tuesday,
3: Wednesday, 4: Thursday, 5: Friday, W UW6556 F0156
(Day)
6: Saturday
GP LP
Name Function R/W
device device
Time-driven interrupt cycle Time-driven interrupt cycle
R/W UW74570 F170
settings 1 settings 1
Time-driven interrupt cycle Time-driven interrupt cycle
R/W UW74571 F171
settings 2 settings 2
Time-driven interrupt cycle Time-driven interrupt cycle
R/W UW74572 F172
settings 3 settings 3
Time-driven interrupt cycle Time-driven interrupt cycle
R/W UW74574 F174
settings 4 settings 4
Time-driven interrupt cycle Time-driven interrupt cycle
R/W UW74575 F175
settings 5 settings 5
Time-driven interrupt cycle Time-driven interrupt cycle
R/W UW74576 F176
settings 6 settings 6
Time-driven interrupt cycle Time-driven interrupt cycle
R/W UW74577 F177
settings 7 settings 7
Time-driven interrupt cycle Time-driven interrupt cycle R/W UW74578 F178
GP LP
Name Function R/W
device device
settings 8 settings 8
5 Instruction
If there is a data processing method part: MULLU, ADDLU, SUBLU ….. etc.
Operand
S: Represents source device
D: Represents destination device
N: Represents the number of device
LOADP 2 1 19.8 5 88
LOADF 2 1 19.8 5 89
ANDP 2 1 20.28 5 92
ANDF 2 1 20.28 5 93
ANDL 1 0 20.2 5 94
OR 1 1 10 2.5 95
ORN 1 1 10 2.5 96
ORP 2 1 19 5 97
ORF 2 1 19 5 98
ORL 1 4 19 5 99
OUT
1 1 10.8 2.5 101
Syyy.xx
28.12 /
ALT 3 1 4.125 107
25.0
when H: 3, when H: 3,
54.6 16.625
when H: 15, when H: 15,
74.2 17.5
ACMP 7 4 when H: 30, when H: 30, 182
94.5 21
when not when not
running, running,
39.2 16.625
when N: 2, when N: 2,
62.1 18
when N: 4, when N: 4,
85.5 21.375
when N: 8, when N: 8,
CMPL 9 4 124.2 29.25 183
when N: 16, when N: 16,
211.5 45
when not when not
running, running,
41.85 13.5
when N: 2, when N: 2,
66.6 22.5
when N: 4, when N: 4,
88.2 25.875
when N: 8, when N: 8,
DCMPL 9 4 129.6 32.625 184
when N: 16, when N: 16,
214.2 39.375
when not when not
running, running,
43.2 15.75
22.35 /
DMOV 5 2 8.75 191
22.35
when N: 2, when N: 2,
35 13.125
when N: 4, when N: 4,
37.8 16.625
when N: 8, when N: 8,
BMOVL 7 3 44.1 20.125 192
when N: 16, when N:
56 16, 16.625
when not when not
running, running,
32.9 9.625
when N: 2, when N: 2,
29.4 9.625
when N: 4, when N: 4,
31.5 12.25
when N: 8, when N: 8,
MOVL 7 3 33.6 13.125 193
when N: 16, when N:
37.8 16, 15.75
when not when not
running, running,
27.3 9.625
when N: 2, when N: 2,
33.32 10.5
when N: 4, when N: 4,
35.35 12.25
when N: 8, when N: 8,
DMOVL 7 3 38.5 14 194
when N: 16, when N:
45.5 16, 18.375
when not when not
running, running,
31.5 9.625
when N: 2, when N: 2,
37.1 12.25
when N: 4, when N: 4,
BMOVG 7 3 195
41.6 13.125
when N: 8, when N: 8,
449.7 16.625
22.35 /
DCMOV 5 2 8.75 200
22.35
13.35 /
DSWAP 3 1 4.875 205
12.3
43.2 /
ASFTR 9 3 12.375 219
35.55
43.2 /
ASFTL 9 3 12.375 221
35.55
52.36 /
DADD 7 3 13.125 225
38.36
52.36 /
DADDU 7 3 14 227
38.36
40.32 /
DSUB 7 3 12.25 233
36.33
40.32 /
DSUBU 7 3 12.25 235
36.33
53.34 /
DMUL 7 3 14 241
38.36
53.34 /
DMULU 7 3 14.875 243
38.36
52.36 /
DDIV 7 3 14 249
38.36
52.36 /
DDIVU 7 3 13.125 251
38.36
14.37 /
DINC 3 1 4.875 257
12.87
14.37 /
DDEC 3 1 4.875 259
12.87
110.32 /
DADDB 7 3 14 261
35.35
DSUBB 7 3 14 265
DMULB 7 3 21 269
DDIVB 7 3 14 273
MTPDM 9 6 18 338
MTIDM 5 2 9 339
MTEMS 5 1 9 341
MTCPP 5 2 9 342
MTOVV 5 2 9 346
HSCNT 7 5 14 350
Non
processing NOP Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
Contact
LOAD S Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, F, UB
S BIT Contact of bit device
Not applicable 1
<Ladder>
When the contact(S) is ON, the corresponding output
bit becomes 1.
<Time chart>
Contact
LOADN S Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, F, UB
S BIT Contact of bit device
Not applicable 1
<Ladder>
When the (S) bit turns OFF from ON, the operation
result becomes ON from OFF.
<Time chart>
Contact
LOADP S Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, F, UB
S BIT Contact of bit device
Not applicable 2
<Ladder>
As soon as the (S) contact turns ON from OFF, the
operation result becomes ON.
<Time chart>
1 Scan
Contact
LOADF S Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, F, UB
<Ladder>
As soon as the (S) contact turns OFF from ON, the
operation result becomes ON.
<Time chart>
1 Scan
Contact
AND S Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, F, UB
<Ladder>
Executes AND operation between the previous
operation result and the designated contact(S), and
considers it as the operation result.
<Time chart>
Contact
ANDN S Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, F, UB
<Ladder>
Executes AND NOT operation between the previous
operation result and the designated contact(S), and
considers it as the operation result.
<Time chart>
Contact
ANDP S Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, F, UB
<Ladder>
On the rising edge of a pulse, it executes AND
operation between the previous operation result and
the designated contact(S), and considers it as the
operation result.
<Time chart>
1 Scan
Contact
ANDF S Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, F, UB
<Ladder>
On the falling edge of a pulse, it executes AND
operation between the previous operation result and
the designated contact(S), and considers it as the
operation result.
<Time chart>
1 Scan
Contact
ANDL Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
[Note]
You cannot add as device input in ladder.
Input for instruction is available only for mnemonic.
<Time chart>
Contact
OR S Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, F, UB
<Ladder>
Executes the OR operation between the previous
operation result and the designated contact(S), and
considers it as the operation result.
<Time chart>
Contact
ORN S Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, F, UB
<Ladder>
Executes the ORN operation between the previous
operation result and the designated contact(S), and
considers it as the operation result.
<Time chart>
Contact
ORP S Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, F, UB
<Ladder>
On the rising edge of a pulse, executes OR or ORN
operation between the previous operation result and
designated contact(S), and considers it as the
operation result.
<Time chart>
1 Scan
Contact
ORF S Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, F, UB
<Ladder>
On the falling edge of a pulse, executes OR or ORN
operation between the previous operation result and
the designated contact(S), and considers it as the
operation result.
<Time chart>
1 Scan 1 Scan
Contact
ORL Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
[Note]
You cannot add as device input in ladder.
Input for instruction is available only for mnemonic.
<Time chart>
Output
OUT D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, S, M, UB
<Ladder>
Outputs the operation result executed to the OUT
instruction to the (S) device.
<Time chart>
Output
OUT Syyy.xx D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
S
<Ladder>
Step device
yyy: Group number(0 to 255)
xx: Step number(0 to 99)
1. Unlikely the Sequential Control (Set Syyy.xx)
Instructions, if input condition turns ON, the
corresponding step becomes ON regardless of the
step order.
2. Although a number of input condition contacts
become ON in the same group, the last
programmed contact is output firstly.
3. Even if the input condition turns OFF, the step
number retains ON.
4. In order to clear the OUT Syyy.xx instruction, the
input contact of Syyy.00 should become ON.
<Time chart>
Output
OUTP D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, S, M, UB
<Ladder>
When the operation result executed to the OUTP
turns OFF from ON, the output contact becomes ON
for only one scan and then becomes OFF for any
other cases.
<Time chart>
1 Scan
Output
OUTF D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, S, M, UB
<Ladder>
When the operation result executed to the OUTF
turns OFF from ON, the output contact becomes ON
for only one scan and then becomes OFF for any
other cases.
<Time chart>
1 Scan
Output
SET D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, S, T, C, M, UB
<Ladder>
1. Once the contact is SET, even if the input condition
turns OFF, it retains SET status.
2. In order to turn OFF the contact, you should
execute
The RST instruction.
<Time chart>
Output
SET Syyy.xx D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
S
<Ladder>
Step device
yyy: Group number(0 to 255)
xx: Step number(0 to 99)
1. If the input contact of current step number is ON
while the previous step number is retaining ON status,
the current step number turns ON and the previous
step number turns OFF.
2. Even if the input contact turns OFF, S device at ON
status retains ON.
3. Syyy.00 is always ON status when starting the
program.
4. In order to reset the Syyy.xx instruction, the input
contact of Syyy.00 should become ON.
<Time chart>
Output
RST D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, S, T, C, M, UB
<Ladder>
1. If the input condition turns ON, the corresponding
contact becomes OFF.
2. Even if the input condition turns OFF, the
corresponding contact retains OFF.
<Time chart>
Reversal
ALT D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, M ,UB
<Ladder>
Whenever the input condition turns ON from OFF, the
output is reversed according to this, and this event is
consecutively executed every operation cycle.
<Time chart>
1 Pulse 1 Pulse
Reversal
NOT Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
<Ladder>
1. Transfers input by reversing.
2. A contact circuit is reversed as B contact circuit, B
contact circuit is reversed as A contact circuit.
<Time chart>
Stack
MPUSH Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
Stack
MLOAD Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
Stack
MPOP Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
Exit
END Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
Counter
CTU S N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
C, UW
S WORD Counter contact you want to use
0(h0000) to 65535(hFFFF) 5
X, Y, M, S, T, C, D, Z, F, UW, integer
N WORD Setting value of counter
0(h0000) to 65535(hFFFF)
<Ladder>
1. If the pulse signal is applied to the input rung when
the reset signal is OFF, the word value of S device is
increased one by one, and then when it reaches the
setting value N, the corresponding counter contact
turns ON.
2. If the reset signal turns ON, the word value of S
device becomes 0.
<Time chart>
Setting value
Current value
Output
contact (C0)
Counter
CTD S N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
C, UW
<Ladder>
1. If the pulse signal is applied to the input rung when
the reset signal is OFF, the word value of S device is
decreased one by one, and then when it reaches 0,
the corresponding counter contact turns ON.
2. If the reset signal is ON, the word value of S device
becomes the setting value “N” .
<Time chart>
Setting value
Current value
Output
contact (C0)
Counter
CTUD S N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
C, UW
<Ladder>
1. If the count-up pulse is applied to the input rung
when the reset signal is OFF, the word value of S
device is increased one by one. Likewise, if the
countdown pulse is applied to the input rung, the
word value of S device is decreased one by one.
2. If the word value of S device is greater than the
setting value “N”, the corresponding counter contact
turns ON, and if the word value of S device is less
than the setting value “N”, the corresponding
counter contact turns OFF.
3. If the reset signal is ON, the word value of S
device becomes 0.
<Time chart>
Setting value
Current value
Output
contact (C0)
Counter
CTR S N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
C, UW
<Ladder>
1. If the pulse signal is applied to the input rung when
the reset signal is OFF, the word value of S device is
increased one by one, and then when it reaches 0,
the corresponding counter contact turns ON.
2. If the pulse is continuously being input even after
the reset signal is ON, the word value of S device is
restarted at 0 again and the corresponding counter
contact becomes OFF.
3. Even if the reset signal turns ON, the word value of
S device becomes 0.
<Time chart>
Setting value
Current value
Output
contact (C0)
Timer
TON S N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
T, UW
<Ladder>
1. As soon as the input condition is ON, S device
value of the timer is increased one by one and then
when it reaches the setting value “N”, the
corresponding timer contact turns ON.
2. If the input condition becomes OFF or encounters
RSTxxx instruction, the corresponding timer contact
turns OFF and the current value becomes 0.
<Time chart>
Input condition(X0)
Setting value
Device value
Timer
TOFF S N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
T, UW
<Ladder>
1. As soon as the input condition is ON, S device value
of the timer is changed into the setting value “N” and
the corresponding timer contact becomes ON.
2. If the input condition becomes OFF, the current
value of the timer is decreased one by one and when it
reaches “0”, the corresponding timer contact becomes
OFF.
3. If it encounters RST Txxxx instruction, the
corresponding timer contact turns OFF and the setting
value becomes “0”.
<Time chart>
Input condition(X0)
Setting value
Device value
Timer
TMR S N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
T, UW
<Ladder>
1. When the input signal is ON, the S device value of
the timer is increased. And when the input signal is
OFF, even if its value does not reach the setting value
“N”, it retains the current status of its value, and when
the input signal is ON again it is increased from that
value.
2. When the S device value reaches the setting value
“N”, the corresponding timer contact turns ON. If it
encounters RST Txxxx instruction, the corresponding
timer contact turns OFF and the S device value
becomes “0”.
<Time chart>
Setting value
Input condition(X0)
Device value
Timer
TMON S N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
T, UW
<Ladder>
1. As soon as the input condition is ON, the
corresponding timer contact turns ON, and the S
device value of the timer is changed into the setting
value “N” then it is decreasing.
2. Although the input condition is changed into
ON/OFF in the middle of the execution, the timer is
continuously operating, and when S device value of
the timer reaches “0”, the timer contact is to be OFF.
3. When it encounters RSTxxx instruction, the
corresponding timer contact will be OFF and the S
device value of the timer will be “0”. .
<Time chart>
Input condition(X0)
Setting value
Device value
Timer
TRTG S N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
T, UW
<Ladder>
1. As soon as the input condition is ON, the
corresponding timer contact turns ON and the S
device value is changed into the setting value “N”
then it is decreasing.
2. If the input condition turns OFF in the middle of the
execution and then becomes ON, the S device value
is changed into the setting value “N” again then it will
be decreasing.
3. If it encounters the RST instruction, the
corresponding timer contact turns OFF and the S
device value is changed into “0”.
<Time chart>
Device value
Control
JMP LABEL Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
LABEL name
<Ladder>
1. Jump to the place where the LABEL is matched.
2. When executing the JMP instruction, it does not
process the instructions between JMP to LABEL.
3. If the LABEL does not exist, error flag occurs.
LABEL name
Control Label
LABEL Applicable model
instruction name
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
LABEL name
Label
STRING Label for the place to be jumped
name
STRING 3
<Ladder>
It is a destination for the JMP instruction.
Control
FCALL LABEL Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
LABEL name
<Ladder>
1. Calls the registered user defined function.
2. If you call an unused function, error flag occurs.
3. When you input the instruction statement, the
number of operands should be matched.
Control
FUNC LABEL Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
LABEL name
<Ladder>
Branch
CALL LABEL Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
LABEL name
<Ladder>
1. Calls the subroutine, such as “LABLE” name.
(Executing the program between the SUBRT LABEL
to RET instructions)
2. CALL LABEL can be used in duplicating, and the
program between SUBRT LABEL to RET instructions
should be located behind the END instruction.
END
RET
Branch
SUBRT LABEL Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
LABEL name
<Ladder>
1. Displays the starting point of the CALL subroutine.
2. It should be located behind END and cannot be
used in duplicate.(For CALL statement, it is able to be
used in duplicate)
Branch
RET Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
Loop
FOR N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Integer
N WORD
0(h0000) to 65535(hFFFF) 3
<Ladder>
1. Sets the number of repetitions for the program with the
NEXT instruction.
2. The program is repeated N times until encountering the
NEXT.
3. The range for the number of repetitions is from 0 to
65535.
[Note]
The scan time can be longer than you expected therefore
please use the WDT instruction in order not to exceed the
setting value.
Repeats N times
NEXT
Loop
NEXT Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
The program is repeated from the FOR instruction to the NEXT instruction.
Loop
BREAK Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
Repeat operation is executed with FOR, NEXT instruction. With BREAK instruction, the repeated operation stops
even though repeated execution is not complete.
Master
control MCS N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Integer
Invariable
N MCS number (0 to 7)
number
0 to 7 ◎ 2
<Ladder>
1. If the input condition of MCS is ON, the program is
executed to the MCR instruction, which has the same
number of MCS. And if the input condition turns OFF,
the program does not execute the instruction.
2. MCS number “0” has the highest priority and MCS
number “15” has the lowest priority, therefore you
should use them in order of priority, and should clear
them in reverse order.
3. When you execute the MCR instruction, if you
clear the higher priority the MCS block, which has the
lower priority, is cleared too.
4. MCS or MCR instruction should be used in order of
its priority.
Master
control MCR N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Integer
Invariable
N MCR number (0 to 7)
number
0 to 7 2
<Ladder>
Master control reset
Clears the registered master control by using the
MCS instruction.
Interrupt
EI Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Not applicable
<Ladder>
Enable Interrupt
1. Enables all interrupts.
2. Enables the entire time interrupts and external
interrupts.
3. In order to use the individual interrupt, you should
use ETI and EEI instructions.
Interrupt
DI Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
1
<Ladder>
Disable Interrupt
1. Disables all interrupts.
2. Disables the entire time interrupts and external
interrupts.
3. In order to disable the individual interrupt, you
should use the DTI and DEI instructions.
Interrupt
ETI Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Integer
Invariable
number
0 to 7 1
<Ladder>
Interrupt
EEI Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Integer
Invariable
number
0 to 15 1
<Ladder>
Interrupt
DTI Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Integer
Invariable
number
0 to 7 1
<Ladder>
Interrupt
DEI Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Integer
Invariable
number
0 to 15 1
<Ladder>
Interrupt
TINT Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Integer
Invariable
number
0 to 7 1
<Ladder>
Time Interrupt
1. Represents the starting point of the time interrupt
block.
2. In order to indicate the end of block, you should
use the IRET instruction at the end of TINT block.
3. Structure of the instructions
TINT Time Interrupt Number(0 to 7)
Example)
As soon as the input contact of
ETI 0 is ON, TINT0 to IRET loop
runs.
Interrupt
EINT Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Integer
Invariable
number
0 to 15 1
<Ladder>
External Interrupt
1. Represent the starting point of the external interrupt
block.
2. In order to indicate the end of block, you should
use the IRET instruction at the end of EINT block.
3. Structure of the instructions
EINT External Interrupt Number(0 to 15)
Interrupt
IRET Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
1
<Ladder>
Interrupt Return
1. Represents the end of time interrupt and external
interrupt blocks.
2. As below, it is generally being used with TINT or
EINT instruction as a pair.
TINT to IRET
EINT to IRET
Watchdog
WDT Applicable model
timer
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
1
<Ladder>
Input
comparison LOAD= S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data or address to compare with S1
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. Compares the word value of S1 with that of S2, and
if they are equal, it turns ON.
2. If the word values of S1 and S2 are not equal, it
turns OFF.
3. Executes the Signed comparison.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
Comparison result
Input
comparison LOAD> S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data or address to compare with S1
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. If the word value of S1 is greater than that of S2, it
turns ON.
2. If the word value of S1 is less than or equal to that
of S2, it turns OFF.
3. Execute the Signed comparison.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
Comparison result
Input
comparison LOAD< S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data or address to compare with S1
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. If the world value of S1 is less than that of S2, it
turns ON.
2. If the word value of S1 is greater than or equal to
that of S2, it turns OFF.
3. Executes the Signed comparison.
(h8000(-32768) to hFFFF(-1) < 0 to hFFFF(32767))
Comparison result
Input
comparison LOAD<> S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data or address to compare with S1
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. If the word values of S1 and S2 are not equal, it
turns ON.
2. If the word values of S1 and S2 are equal, it turns
OFF.
3. Executes the Signed comparison.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
Comparison result
Input
comparison LOAD>= S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data or address to compare with S1
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. If the word value of S1 is less than or equal to that
of
S2, it turns ON.
2. If the word value of S1 is greater than that of S2, it
turns OFF.
3. Executes the Signed comparison.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
Comparison result
Input
comparison LOAD<= S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data or address to compare with S1
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. If the word value of S1 is less than or equal to
that of
S2, it turns ON.
2. If the word value of S1 is greater than that of S2,
it turns OFF.
3. Executes the Signed comparison.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
Comparison result
Input
comparison DLOAD= S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(hFFFFFFFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data or address to compare with S1
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
<Ladder>
1. If the double word values of S1 and S2 are equal, it
turns ON.
2. If the double word values of S1 and S2 are not
equal, it turns OFF.
3. Executes the Signed comparison.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Comparison result
Input
comparison DLOAD> S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(hFFFFFFFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data or address to compare with S1
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
<Ladder>
1. If the double word value of S1 is greater than that
of S2, it turns ON.
2. If the double word value of S1 is less than or equal
to that of S2, it turns OFF.
3. Executes the Signed comparison.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Comparison result
Input
comparison DLOAD< S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(hFFFFFFFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data or address to compare with S1
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
<Ladder>
1. If the double word value of S1 is less than that of
S2, it turns ON.
2. If the double word value of S1 is greater than that
of
S2, it turns OFF.
3. Executes the Signed comparison.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Comparison result
Input
comparison DLOAD<> S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(hFFFFFFFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data or address to compare with S1
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
<Ladder>
1. If the double word values of S1 and S2 are not
equal, it turns ON.
2. If the double word value of S1 and S2 are equal, it
turns OFF.
3. Executes the Signed comparison.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Comparison result
Input
comparison DLOAD>= S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(hFFFFFFFF) 5
integer, *, Z, X, Y, M, D, L, F, T, C, UW
S2 DINT Data or address to compare with S1
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
<Ladder>
1. If the double word value of S1 is greater than or
equal to that of S2, it turns ON.
2. If the double word value of S1 is less than that of
S2, it turns OFF.
3. Executes the Signed comparison.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Comparison result
Input
comparison DLOAD<= S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(hFFFFFFFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data or address to compare with S1
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
<Ladder>
1. If the double word value of S1 is less than or
equal to that of S2, it turns ON.
2. If the double word value of S1 is greater than that
of S2, it turns OFF.
3. Executes the Signed comparison.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Comparison result
Input
comparison AND= S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data or address to compare with S1
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. If the word values of S1 and S2 are equal, it turns
ON.
2. If the word values of S1 and S2 are not equal, it
turns OFF.
3. Executes the Signed comparison.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
Input
comparison AND> S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data or address to compare with S1
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. If the word value of S1 is greater than that of S2, it
turns ON.
2. If the word value of S1 is less than or equal to that
of
S2, it turns OFF.
3. Executes the Signed comparison.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
Input
comparison AND< S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data or address to compare with S1
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. If the word value of S1 is less than that of S2, it
turns ON.
2. If the word value of S1 is greater than or equal to
that of S2, it turns OFF.
3. Executes the Signed comparison.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
Input
comparison AND<> S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data or address to compare with S1
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. If the word values of S1 and S2 are not equal, it
turns ON.
2. If the word values of S1 and S2 are equal, it turns
OFF.
3. Executes the Signed comparison.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
Input
comparison AND>= S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data or address to compare with S1
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. If the word value of S1 is greater than or equal to
that of S2, it turns ON.
2. If the word value of S1 is less than that of S2, it
turns OFF.
3. Executes the Signed comparison.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
Input
comparison AND<= S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data or address to compare with S1
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. If the word value of S1 is less than or equal to that
of
S2, it turns ON.
2. If the word value of S1 is greater than that of S2, it
turns OFF.
3. Executes the Signed comparison.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
Input
comparison DAND= S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(h7FFFFFFFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data or address to compare with S1
-2147483648(h80000000) to 2147483647(h7FFFFFFFF)
<Ladder>
1. If the double word values of S1 and S2 are equal, it
turns ON.
2. If the double word values of S1 and S2 are not
equal, it turns OFF.
3. Executes the Signed comparison.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Input
comparison DAND> S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(hFFFFFFFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data or address to compare with S1
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
<Ladder>
1. If the double word value of S1 is greater than that of
S2, it turns ON.
2. If the double word value of S1 is less than or equal
to that of S2, it turns OFF. .
3. Executes the Signed comparison.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Input
comparison DAND< S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(hFFFFFFFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data or address to compare with S1
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
<Ladder>
1. If the double word value of S1 is less than that of
S2, it turns ON.
2. If the double word value of S1 is greater than or
equal to that of S2, it turns OFF.
3. Executes the Signed comparison.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Input
comparison DAND<> S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(hFFFFFFFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data or address to compare with S1
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
<Ladder>
1. If the double word values of S1 and S2 are not
equal, it turns ON.
2. If the double word values of S1 and S2 are equal, it
turns OFF.
3. Executes the Signed comparison.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Input
comparison DAND>= S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(hFFFFFFFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data or address to compare with S1
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
<Ladder>
1. If the double word value of S1 is greater than or
equal to that of S2, it turns ON.
2. If the double word value of S1 is less than that of
S2, it turns OFF.
3. Executes the Signed comparison.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Input
comparison DAND<= S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(hFFFFFFFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data or address to compare with S1
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
<Ladder>
1. If the double word value of S1 is less than or equal
to that of S2, it turns ON.
2. If the double word value of S1 is greater than that
of
S2, it turns OFF.
3. Executes the Signed comparison.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Input
comparison OR= S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data or address to compare with S1
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. If the word value of S1 is equal to that of S2, it
turns ON.
2. If the word value of S1 is not equal to that of S2, it
turns OFF.
3. Executes the Signed comparison.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
Input
comparison OR> S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data or address to compare with S1
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. If the word value of S1 is greater than that of S2, it
turns ON.
2. If the word value of S1 is less than or equal to that
of S2, it turns OFF.
3. Executes the Signed comparison.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
Input
comparison OR< S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data or address to compare with S1
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. If the word value of S1 is less than that of S2, it
turns ON.
2. If the word value of S1 is greater than or equal to
that of S2, it turns OFF.
3. Executes the Signed comparison.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
Input
comparison OR<> S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data or address to compare with S1
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. If the word value of S1 is not equal to that of S2, it
turns ON.
2. If the word value of S1 is equal to that of S2, it
turns OFF.
3. Executes the Signed comparison.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
Input
comparison OR>= S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data or address to compare with S1
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. If the word value of S1 is greater than or equal to
that of S2, it turns ON.
2. If the word value of S1 is less than that of S2, it
turns OFF.
3. Executes the Signed comparison.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
Input
comparison OR<= S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data or address to compare with S1
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. If the word value of S1 is less than or equal to that
of S2, it turns ON.
2. If the word value of S1 is greater than that of S2, it
turns OFF.
3. Executes the Signed comparison.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
Input
comparison DOR= S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(h7FFFFFFFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data or address to compare with S1
-2147483648(h80000000) to 2147483647(h7FFFFFFFF)
<Ladder>
1. If the double word value of S1 is equal to that of
S2, it turns ON.
2. If the double word value of S1 is not equal to that
of S2, it turns OFF.
3. Executes the Signed comparison.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Input
comparison DOR> S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(h7FFFFFFFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data or address to compare with S1
-2147483648(h80000000) to 2147483647(h7FFFFFFFF)
<Ladder>
1. If the double word value of S1 is greater than that
of
S2, it turns ON.
2. If the double word value of S1 is less than or equal
to that of S2, it turns OFF.
3. Executes the Signed comparison.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Input
comparison DOR< S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(h7FFFFFFFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data or address to compare with S1
-2147483648(h80000000) to 2147483647(h7FFFFFFFF)
<Ladder>
1. If the double word value of S1 is less than that of
S2, it turns ON.
2. If the double word value of S1 is greater than or
equal to that of S2, it turns OFF.
3. Executes the Signed comparison.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Input
comparison DOR<> S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(h7FFFFFFFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data or address to compare with S1
-2147483648(h80000000) to 2147483647(h7FFFFFFFF)
<Ladder>
1. If the double word value of S1 is not equal to that of
S2, it turns ON.
2. If the double word value of S1 is equal to that of
S2, it turns OFF.
3. Executes the Signed comparison.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Input
comparison DOR>= S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(h7FFFFFFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data or address to compare with S1
-2147483648(h80000000) to 2147483647(h7FFFFFFF)
<Ladder>
1. If the double word value of S1 is greater than or
equal to that of S2, it turns ON.
2. If the double word value of S1 is less than that of
S2, it turns OFF.
3. Executes the Signed comparison.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Input
comparison DOR<= S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(h7FFFFFFF) 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data or address to compare with S1
-2147483648(h80000000) to 2147483647(h7FFFFFFF)
<Ladder>
1. If the double word value of S1 is less than or equal
to that of S2, it turns ON.
2. If the double word value of S1 is greater than that
of
S2, it turns OFF.
3. Executes the Signed comparison.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Comparison
Applicable model
instruction CMP S1 S2 D
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
<Ladder>
Compares the word value of S1 with that of S2. The
result is as below :
1. If S1 < S2, D bit turns ON.
2. If S1 = S2, D+1 bit turns ON.
3. If S1> S2, D+2 bit turns ON.
4. Comparison executes the Signed operation.
(h8000(-32768) to h7FFF(-1) < 0 to h7FFF(32767))
Comparison
DCMP S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
<Ladder>
Compares the double word value of S1 with that of
S2. The result is as below :
1. If S1 < S2, D bit turns ON.
2. If S1 = S2, D+1 bit turns ON.
3. If S1 > S2, D+2 bit turns ON.
4. Comparison executes the Signed operation.
(h8000(-32768) to h7FFF(-1) < 0 to h7FFF(32767))
Comparison
Applicable model
instruction ACMP S1 S2 D N
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, T, C, M, UB
<Ladder>
Compares the number of N bit values beginning with
S1 bit with the number of N bit values beginning with
S2 bit. As a result :
1. If S1 < S2, D bit turns ON.
2. If S1==S2, D+1 bit turns ON.
3. If S1>S2, D+2 bit turns ON.
S1+2 bit is S1+1 bit is S1 bit is ON S2+2 bit is S2+1 bit is ON S2 bit is ON
ON OFF OFF
D+2 bit is ON
Comparison
CMPL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
<Ladder>
Compares the word value of S1 with the number of
N word values beginning with S2 word. As a
result :
1. If S1 < S2, D bit turns ON.
2. If S1 == S2, D+1 bit turns ON.
3. If S1 > S2, D+2 bit turns ON.
Comparison Comparison Bit The comparison result of S2+1 is stored in bits
result from D+3 to D+5, like this way, the operation
results are sequentially stored in D bits.
4. Comparison executes the Signed operation.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
Comparison
Applicable model
instruction DCMPL S1 S2 D N
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
<Ladder>
Compares the double word S1 with the number of
N double words beginning with double word S2. As
a result :
1. If S1 < S2, D bit turns ON.
2. If S1 == S2, D+1 bit turns ON.
3. If S1 > S2, D+2 bit turns ON.
Comparison Comparison Bit The comparison result of S2+1 is stored in bits
result
from D+3 to D+5, like this way, the operation
results are sequentially stored in D bits.
4. Comparison executes the Signed operation.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
Comparison
BWCMP S1 S2 S3 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW, integer
<Ladder>
Compare word value of S3 with the limited area
between S1 and S2 word values. As a result :
1. If the value of S3 is less than the smaller value of
the two (S1, S2), D bit turns ON.
2. If the value of S3 is equal to the smaller value of
the two, D+1 bit turns ON.
3. If the value of S3 is located between the two
values, D+2 bit turns ON.
4. If the value of S3 is equal to the larger value of the
two, D+3 bit turns ON.
5. If the value of S3 is greater than the larger value of
the two, D+4 bit turns ON.
6. Comparison executes the Signed operation.
S3 position
Comparison
DBWCMP S1 S2 S3 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW, integer
<Ladder>
Compares the double word value of S3 with the
limited area between S1 and S2 word values.
As a result :
1. If the value of S3 is less than the smaller value of
the two (S1, S2), D bit turns ON.
2. If the value of S3 is equal to the smaller value of
the two, D+1 bit turns ON.
3. If the value of S3 is located between the two
values, D+2 bit turns ON.
4. If the value of S3 is equal to the larger value of the
two, D+3 bit turns ON.
5. If the value of S3 is greater than the larger value of
the two, D+4 bit turns ON.
6. Comparison executes the Signed operation.
S3 position
Transmission
Applicable model
instruction BMOV S D
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, T, C, M, UB
<Ladder>
Transmits the source bit to the destination bit.
S bit D bit
Transmission
Applicable model
instruction MOV S D
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
<Ladder>
Transmits the source word to the destination word.
S word D word
Transmission
Applicable model
instruction DMOV S D
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
<Ladder>
Transmits the source double word to the destination
double word.
S double D double
word word
Transmission
Applicable model
instruction BMOVL S D N
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, T, C, M, UB
<Ladder>
Transmits the source bit to the number of N bits
beginning with D, one by one.
Transmission
Applicable model
instruction MOVL S D N
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
<Ladder>
Transmits the source word to the number of N words
beginning with D, one by one.
Transmission
Applicable model
instruction DMOVL S D N
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
<Ladder>
Transmit the source double word to the number of N
double words beginning with D, one by one.
Transmission
Applicable model
instruction BMOVG S D N
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, T, C, M, UB
<Ladder>
Transmits the number of N bit groups beginning with
(S) to the number of N bit groups beginning with (D),
in batches.
Transmission
Applicable model
instruction MOVG S D N
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW
<Ladder>
Transmit the number of N word groups beginning with
(S), to the number of N word groups beginning with
(D), in batches.
Transmission
Applicable model
instruction DMOVG S D N
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D ,UW
<Ladder>
Transmit the number of N double word groups
beginning with (S) to the number of N double word
groups beginning with (D), in batches.
Transmission
Applicable model
instruction BCMOV S D
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, T, C, M, UB
<Ladder>
Reverses the source device and then transmits it to
the destination bit.
Reverse
Transmission
Applicable model
instruction CMOV S D
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
<Ladder>
Reverses the source word and then transmits it to the
destination word.
Reverse
Transmission
Applicable model
instruction DCMOV S D
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
<Ladder>
Reverses the source double word and then
transmits it to the destination double word.
Reverse
Exchange
XCH S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
<Ladder>
Exchanges a data in S1 word and a data in S2 word
each other.
Exchange
DXCH S1 S2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
<Ladder>
Exchanges a data in the double word S1 and a data
in the double word S2 each other.
Exchange
AXCH S1 S2 N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, T, C, M, UB
<Ladder>
Exchanges the number of N bits beginning with S1
with the number of N bits beginning from S2 each
other.
Upper bit
Exchange
Upper bit
Upper bit
Upper bit
Exchange
SWAP D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
<Ladder>
Exchanges the high order bytes of the designated
word with its low order bytes each other.
Exchange
DSWAP D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
<Ladder>
Exchanges the high order word of the designated
double word with its low order word.
Rotation
ROR S C Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
<Ladder>
Rotates the source word to the right side by the
number of C bits.
Rotation
DROR S C Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, F, Z, T, C, M, S, L, D, UW
<Ladder>
Rotates the source double word to the right side by
the number of C bits.
Rotation
AROR S N C Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, T, C, M, UB
S BIT Start address for bit device of the data to execute the operation
Not applicable ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of bit device to execute the operation from start
N WORD address
To the remained device range in corresponding S area
X, Y, F, Z, T, C, M, S, L, D, UW, integer
C WORD The number of bits to rotate right side
0 to 255
<Ladder>
Within the number of N bits, bits rotate to the right
side by the number of C bits beginning with S bit.
Rotation
RORC S C Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
<Ladder>
Rotates the source word including carry bit, to the
right side by the number of C bits.
Rotation
DRORC S C Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
<Ladder>
Rotates the source double word including carry bit, to
the right side by the number of C bits.
Rotation
ARORC S N C Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, T, C, M, UB
S BIT Start address for bit device of the data to execute the operation
Not applicable ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of bit device to execute the operation from start
N WORD address
To the remained device range in corresponding S area
X, Y, F, Z, T, C, M, S, L, D, UW, integer
C WORD The number of bits to rotate right side
0 to 255
<Ladder>
Within the number of N bits, rotates the designated
bits including carry bit to the right side by the number
of C bits.
Rotation
ROL S C Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
<Ladder>
Rotates the source word to the left side by the
number of C bits.
Rotation
DROL S C Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
<Ladder>
Rotates the source double word to the left side by the
number of C bits.
Rotation
AROL S N C Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, T, C, M, UB
S BIT Start address for bit device of the data to execute the operation
Not applicable ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of bit device to execute the operation from start
N WORD address
To the remained device range in corresponding S area
X, Y, F, Z, T, C, M, S, L, D, UW, integer
C WORD The number of bits to rotate left side
0 to 255
<Ladder>
Within the number of N bits, rotates the designated
bits beginning with the S bit to the left side by the
number of C bits.
Rotation
ROLC S C Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
<Ladder>
Rotates the source word including carry bit to the left
side by the number of C bits.
Rotation
DROLC S C Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
<Ladder>
Rotates the source double word including the carry bit
to the left side by the number of C bits.
Rotation
AROLC S N C Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, T, C, M, UB
S BIT Start address for bit device of the data to execute the operation
Not applicable ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of bit device to execute the operation from start
N WORD address
To the remained device range in corresponding S area
X, Y, F, Z, T, C, M, S, L, D, UW, integer
C WORD The number of bits to rotate left side
0 to 255
<Ladder>
Within the range from the source bit to the N bit,
rotates the designated bits including the carry bit to the
left side by the number of C bits beginning with the S
bit.
Movement
SFTR S N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
<Ladder>
1. Within the S word, moves the 16-bit of S word to the
right side by the number of N bits.
2. If the Nth bit from the low order bit is 1, carry bit is
SET.
Movement
ASFTR S N1 N2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, T, C, M, UB
<Ladder>
1. From the source bit, N1 bits moves to the right side
as N2 in the range.
2. The high order bits, which are the number of
movement, have “0” as their value.
3. If the value of N2 is greater than N1, the values
from source bit to N bit are shifted to “0”.
N1
Ex)
Upper bit S Bit
Movement
SFTL S N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
<Ladder>
1. Within the source word, move the 16 bits of source
word to the left by the number of N bits.
2. If the Nth bit from the high order bit is 1, carry bit is
SET.
Movement
ASFTL S N1 N2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, T, C, M, UB
<Ladder>
1. From the source bit, N1 bits moves to the left side as
N2 in the range.
2. The low order bits, which are the number of
movement, have “0” as their value.
3. If the value of N2 is greater than N1, the values of
designated bits, from source bit to the N1, are shifted
to “0”.
N1
Ex)
Upper bit S Bit
Upper bit
Movement
WSFTR S N1 N2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
<Ladder>
1. From the source word, N1 words moves to the right
side as N2 in the range by word unit.
2. The high order words, which are the number of
movement, have “0” as their value.
After execution
Movement
WSFTL S N1 N2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
<Ladder>
1. From the source word, N1 words moves to the left
side as N2 in the range by word unit.
2. The lower order words, which are the number of
movement, have “0” as their value.
After execution
Arithmetic
operation ADD S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data address to execute the addition operation with S1
-32768(h8000) to 32767(h7FFF)
Y, F, Z, T, C, M, S, L, D, UW
D INT Address to save the operation result
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. Adds the word values of S1 and S2, and then stores
the result into the destination word D
2. Executes the Signed operation.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
3. If the result value exceeds ‘h7FFF(32767)’, carry
flag is SET.
4. If the result value is h0000, zero flag is SET.
Arithmetic
operation DADD S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(h7FFFFFFF) ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data address to execute the addition operation with S1
-2147483648(h80000000) to 2147483647(h7FFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DINT Address to save the operation result
-2147483648(h80000000) to 2147483647(h7FFFFFFF)
<Ladder>
1. Adds the double word values of S1 and S2, and then
stores the result into the destination double word D.
2. Executes the Signed operation.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
3. If the result value exceeds ‘h7FFFFFFF
(2147483647)’, carry flag is SET.
4. If the result value is ‘h00000000’, zero flag is SET.
Arithmetic
operation ADDU S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 65535(hFFFF) ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 WORD Data address to execute the addition operation with S1
0(h0000) to 65535(hFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
0(h0000) to 65535(hFFFF)
<Ladder>
1. Adds the word values of S1 and S2 and then stores
the result into the destination word D.
2. Executes the Unsigned operation.
3. If the result value exceeds ‘hFFFF (65535)’, carry
flag is SET.
4. If the result value is ‘h0000’, zero flag is SET.
Arithmetic
operation DADDU S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 4294967295(hFFFFFFFF) ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DWORD Data address to execute the addition operation with S1
0(h0000) to 4294967295(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
0(h0000) to 4294967295(hFFFFFFFF)
<Ladder>
1. Adds the double word values of S1 and S2, and then
stores the result into the destination double word D.
2. Executes the Unsigned operation.
3. If the result value exceeds ‘hFFFFFFFF
(4294967295)’, carry flag is SET.
4. If the result value is ‘h0000’, zero flag is SET.
Arithmetic
operation ADDL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 INT Data address to execute the addition operation with S1
-32768(h8000) to 32767(h7FFF)
Y, F, Z, T, C, M, S, L, D, UW
D INT Address to save the operation result
-32768(h8000) to 32767(h7FFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Adds the word value of S1 and the number of N
word values beginning with S2 one by one, and then
stores the number of N results into the number of N
corresponding destination words beginning with word
D.
2. Executes the Signed operation.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
3. If the result value is ‘h0000’, zero flag is SET.
Arithmetic
operation DADDL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(h7FFFFFFF) ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 DINT Data address to execute the addition operation with S1
-2147483648(h80000000) to 2147483647(h7FFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DINT Address to save the operation result
-2147483648(h80000000) to 2147483647(h7FFFFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Adds the double word value of S1 and the number of
N double word values beginning with S2 one by one,
and then stores their results into the number of N
corresponding destination double words beginning with
double word D respectively.
2. Executes the Signed operation.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
3. If the result value is ‘h00000000’, zero flag is SET.
Arithmetic
operation ADDLU S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 65535(hFFFF) ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 WORD Data address to execute the addition operation with S1
0(h0000) to 65535(hFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
0(h0000) to 65535(hFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Adds the word value of S1 and the number of N
word values beginning with S2 one by one, and then
stores their results into the number of N corresponding
destination words beginning with word D respectively.
2. Executes the Unsigned operation.
3. If the result value exceeds ‘hFFFF (65535)’ carry
flag is SET.
4. If the result value is ‘h0000’, zero flag is SET.
Arithmetic
operation DADDLU S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 4294967295(hFFFFFFFF) ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 DWORD Data address to execute the addition operation with S1
0(h0000) to 4294967295(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
0(h0000) to 4294967295(hFFFFFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Adds the double word value of S1 and the number of
N double word values beginning with S2 one by one,
and then stores their results into the number of N
corresponding destination double words beginning with
double word D respectively.
2. Executes the Unsigned operation.
3. If the result value exceeds ‘hFFFFFFFF
(4294967295)’, carry flag is SET.
4. If the result value is ‘h0000’, zero flag is SET.
Arithmetic
operation SUB S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data address to execute the subtraction operation with S1
-32768(h8000) to 32767(h7FFF)
Y, F, Z, T, C, M, S, L, D, UW
D INT Address to save the operation result
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. Subtracts the word value of S2 from the word value
of S1 and then stores the result into the destination
word D.
2. Executes the Signed operation.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
3. If the result value is ‘h0000’, zero flag occurs.
Arithmetic
operation DSUB S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(hFFFFFFFF) ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data address to execute the subtraction operation with S1
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
Y, F, Z, T, C, M, S, L ,D, UW
D DINT Address to save the operation result
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
<Ladder>
1. Subtracts double word value of S2 from the double
word value of S1 and then stores the result into the
destination double word D.
2. Executes the Signed operation.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
3. If the result value is ‘h00000000’, zero flag occurs.
Arithmetic
operation SUBU S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 65535(hFFFF) ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 WORD Data address to execute the subtraction operation with S1
0(h0000) to 65535(hFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
0(h0000) to 65535(hFFFF)
<Ladder>
1. Subtracts the word value of S2 from the word value
of S1 and then stores the result into the destination
word D.
2. Executes the Unsigned operation.
3. If the result value is ‘h0000’ or out of this, borrow
flag occurs.
4. If the result value is ‘h0000’, zero flag occurs.
Arithmetic
operation DSUBU S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
Data address to execute the subtraction operation with S2
S1 DWORD
0(h0000) to 4294967295(hFFFFFFFF) ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DWORD Data address to execute the subtraction operation with S1
0(h0000) to 4294967295(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
0(h0000) to 4294967295(hFFFFFFFF)
<Ladder>
1. Subtract the double word value of S2 from the
double word value of S1 and then store the result into
the destination double word D.
2. Executes the Unsigned operation.
3. If the result value is ‘h00000000’ or out of this,
borrow flag occurs.
4. If the result value ‘h00000000’, zero flag occurs.
Arithmetic
operation SUBL S1 S2 D N N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 INT Data address to execute the subtraction operation with S1
-32768(h8000) to 32767(h7FFF)
Y, F, Z, T, C, M, S, L, D, UW
D INT Address to save the operation result
-32768(h8000) to 32767(h7FFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Subtracts the number of N word values, which are
from S2 to S2(N-1), from the double word value of S1
respectively, and then stores the result into the
number of N corresponding destination double words
beginning with the word D.
2. Executes the Signed operation.
(h8000(-32768) to hFFFF(-1) < 0 to h7FFF(32767))
3. If the result value is ‘h0000’, zero flag occurs.
Arithmetic
operation DSUBL S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(h7FFFFFFF) ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 DINT Data address to execute the subtraction operation with S1
-2147483648(h80000000) to 2147483647(h7FFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DINT Address to save the operation result
-2147483648(h80000000) to 2147483647(h7FFFFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Subtracts the number of N double word values,
which are from S2 to S2(N-1), from double word value
of S1 respectively, and then stores the result into the
number of N corresponding destination double words
beginning with the double word D.
2. Executes the Signed operation.
(h80000000(-2147483648) to hFFFFFFFF(-1) <
0 to h7FFFFFFF(2147483647))
3. If the result value is ‘h00000000’, zero flag occurs.
Arithmetic
operation SUBLU S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 65535(hFFFF) ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 WORD Data address to execute the subtraction operation with S1
0(h0000) to 65535(hFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
0(h0000) to 65535(hFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Subtracts the number of N word values, which are
from S2 to S2(N-1), from word value of S1
respectively, and then stores the result into the
number of N corresponding destination words
beginning with the word D.
2. Executes the Unsigned operation.
3. If the result value is ‘h0000’ or out of this, borrow
flag occurs.
4. If the result value is ‘h0000’, zero flag occurs.
Arithmetic
operation DSUBLU S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 4294967295(hFFFFFFFF) ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 DWORD Data address to execute the subtraction operation with S1
0(h0000) to 4294967295(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
0(h0000) to 4294967295(hFFFFFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Subtracts the number of N double word values,
which are from S2 to S2(N-1), from double word value
of S1 respectively, and then stores the result into the
number of N corresponding destination beginning with
the double word D.
2. Executes the Unsigned operation.
3. If the result value is ‘h00000000’ or out of this,
borrow flag occurs.
4. If the result value ‘h00000000’, zero flag occurs.
Arithmetic
operation MUL S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data address to execute the multiplication with S1
-32768(h8000) to 32767(h7FFF)
Y, F, Z, T, C, M, S, L, D, UW
D DINT Address to save the operation result
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
<Ladder>
1. Multiplies the word value of S1 and that of S2, and
then stores the result into the destination double word
“D”.
2. Executes the Signed operation.
3. If the result value is ‘0’, zero flag occurs.
Arithmetic
operation DMUL S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(hFFFFFFFF) ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data address to execute the multiplication with S1
-2147483648(h80000000 to 2147483647(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D QWORD Address to save the operation result
<Ladder>
1. Multiplies the double word value of S1 and that of
S2, and then stores the result into the destination
“Quad Word D”.
2. Executes the Signed operation.
3. If the result value is ‘0’, zero flag is SET.
Arithmetic
operation MULU S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 65535(hFFFF) ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 WORD Data address to execute the multiplication with S1
0(h0000) to 65535(hFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
0(h0000) to 4294967295(hFFFFFFFF)
<Ladder>
1. Multiplies the word value of S1 and that of S2, and
then stores the result into the destination “Double
Word DW”.
2. Executes the Unsigned operation.
3. If the result value is ‘0’, zero flag occurs.
Arithmetic
operation DMULU S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 4294967295(hFFFFFFFF) ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DWORD Data address to execute the multiplication with S1
0(h0000) to 4294967295(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D QWORD Address to save the operation result
<Ladder>
1. Multiplies the double word value of S1 and that of
S2, and then stores the result into the destination
“Quad Word D”.
2. Executes the Unsigned operation.
3. If the result value is ‘0’, zero flag occurs.
Arithmetic
operation MULL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 INT Data address to execute the multiplication with S1
-32768(h8000) to 32767(h7FFF)
Y, F, Z, T, C, M, S, L, D, UW
D DINT Address to save the operation result
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Multiplies the word value of S1 and the number of N
word values, which are from S2 to S2(N-1),
respectively, and then stores the result into the number
of corresponding destination double words beginning
with double word D.
2. Executes the Signed operation.
3. Any one of the results is ‘0’, zero flag occurs.
Arithmetic
operation DMULL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(h7FFFFFFF) ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 DINT Data address to execute the multiplication with S1
-2147483648(h80000000) to 2147483647(h7FFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D QINT Address to save the operation result
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Multiplies the double word value of S1 and the
number of N double word values, which are from S2 to
S2(N-1), respectively, and then stores the result into
the number of corresponding destination quad words
beginning with D.
2. Executes the Signed operation.
3. Any one of the results is ‘0’, zero flag occurs.
Arithmetic
operation MULLU S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S1 WORD Data address to execute the multiplication with S2
0(h0000) to 65535(hFFFF) ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 WORD Data address to execute the multiplication with S1
0(h0000) to 65535(hFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
0(h0000) to 4294967295(hFFFFFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute
N WORD the operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Multiplies the word value of S1 and the number of N
word values, which are from S2 to S2(N-1)
respectively, and then stores the result into the number
of corresponding destination double words beginning
with double word D one by one.
2. Executes the Unsigned operation.
3. Any one of the results is ‘0’, zero flag occurs.
Arithmetic
operation DMULLU S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 4294967295(hFFFFFFFF) ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 DWORD Data address to execute the multiplication with S1
0(h0000) to 4294967295(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D QWORD Address to save the operation result
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Multiplies the double word value of S1 and the
number of N double word values, which are from S2 to
S2(N-1), and then stores the result into the number of
N corresponding destination quad words beginning
with quad word D one by one.
2. Executes the Unsigned operation.
3. Any one of the results is ‘0’, zero flag occurs.
Arithmetic
operation DIV S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 INT Data address to execute the division operation with S1
-32768(h8000) to 32767(h7FFF)
Y, F, Z, T, C, M, S, L, D, UW
D INT Address to save the operation result
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. Divides the word value of S1 by that of S2 and then
stores the quotient and the remainder into the
destination “Word D” and “Word D+1” respectively.
2. Executes the Signed operation.
3. If the divisor is 0, error flag is SET.
4. If the dividend is 0, zero flag is SET.
(Quotient)
(Remainder)
Arithmetic
operation DDIV S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(hFFFFFFFF) ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DINT Data address to execute the division operation with S1
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DINT Address to save the operation result
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
<Ladder>
1. Divides the double word value of S1 by that of S2
and then stores the quotient and the remainder into the
destination “Double Word D” and “Double Word D+1”
respectively.
2. Executes the Signed operation.
3. If the divisor is 0, error flag is SET.
4. If the dividend is 0, zero flag is SET.
(Quotient)
(Remainder)
Arithmetic
operation DIVU S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 65535(hFFFF) ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 WORD Data address to execute the division operation with S1
0(h0000) to 65535(hFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
0(h0000) to 65535(hFFFF)
<Ladder>
1. Divides the word value of S1 by that of S2 and then
stores the quotient and the remainder into the
destination “Word D” and “Word D+1” respectively.
2. Executes the Unsigned operation.
3. If the divisor is 0, error flag is SET.
4. If the dividend is 0, zero flag is SET.
(Quotient)
(Remainder)
Arithmetic
operation DDIVU S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 4294967295(hFFFFFFFF) ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DWORD Data address to execute the division operation with S1
0(h0000) to 4294967295(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
0(h0000) to 4294967295(hFFFFFFFF)
<Ladder>
1. Divides the double word value of S1 by that of S2
and then stores the quotient and the remainder into the
destination “Double Word D” and “Double Word D+1”
respectively.
2. Executes the Unsigned operation.
3. If the divisor is 0, error flag is SET.
4. If the dividend is 0, zero flag is SET.
(Quotient)
(Remainder)
Arithmetic
operation DIVL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-32768(h8000) to 32767(h7FFF) ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 INT Data address to execute the division operation with S1
-32768(h8000) to 32767(h7FFF)
Y, F, Z, T, C, M, S, L, D, UW
D INT Address to save the operation result
-32768(h8000) to 32767(h7FFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Divides the word value of S1 by the number of N
word values beginning with S2 and then stores the
quotient and the remainder into the destination “Word
D” and “Word D+1” respectively.
2. Executes the Signed operation.
3. If the divisor is 0, error flag is SET.
4. If the dividend is 0, zero flag is SET.
(Quotient)
(Remainder)
Arithmetic
operation DDIVL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
-2147483648(h80000000) to 2147483647(hFFFFFFFF) ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 DINT Data address to execute the division operation with S1
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DINT Address to save the operation result
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Divides the double word value of S1 by the number
of N double word values beginning with S2 and then
stores the quotient and the remainder into the
destination “Double Word D” and “Double Word D+1”
respectively.
2. Executes the Signed operation.
3. If the divisor is 0, error flag is SET.
4. If the dividend is 0, zero flag is SET.
(Quotient)
(Remainder)
Arithmetic
operation DIVLU S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 65535(hFFFF) ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 WORD Data address to execute the division operation with S1
0(h0000) to 65535(hFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
0(h0000) to 65535(hFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Divides the word value of S1 by the number of N
word values beginning with S2 and then stores the
quotient and the remainder into the destination “Word
D” and “Word D+1” respectively.
2. Executes the Unsigned operation.
3. If the divisor is 0, error flag is SET.
4. If the dividend is 0, zero flag is SET.
(Quotient)
(Remainder)
Arithmetic
operation DDIVLU S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 4294967295(hFFFFFFFF) ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 DWORD Data address to execute the division operation with S1
0(h0000) to 4294967295(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
0(h0000) to 4294967295(hFFFFFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Divides the double word value of S1 by the number
of N double word values beginning with S2 and then
stores the quotient and the remainder into the
destination “Double Word D” and “Double Word D+1”
respectively.
2. Executes the Unsigned operation.
3. If the divisor is 0, error flag is SET.
4. If the dividend is 0, zero flag is SET.
(Quotient)
(Remainder)
Arithmetic
operation INC D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
0(h0000) to 65535(hFFFF) ◎ ◎ 3
<Ladder>
1. Increases the value of destination word D by ‘1’.
2. If the value is increased from the maximum value by
1 and then becomes 0, zero flag and carry flag are
SET.
Arithmetic
operation DINC D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
0(h0000) to 4294967295(hFFFFFFFF) ◎ ◎ 3
<Ladder>
1. Increases the value of destination double word D by
‘1’.
2. If the value is increased from the maximum value by
1 and then D value becomes 0, zero flag and carry flag
are SET.
Arithmetic
operation DEC D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
0(h0000) to 65535(hFFFF) ◎ ◎ 3
<Ladder>
1. Decreases the value of destination word D by ‘1’.
2. If D value is ‘0’, zero flag is SET.
3. If D value is decreased again from ‘0’, borrow flag is
SET.
Arithmetic
operation DDEC D Applicable model
Instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
0(h0000) to 4294967295(hFFFFFFFF) ◎ ◎ 3
<Ladder>
1. Decreases the value of destination double word D
by ‘1’.
2. If D value is ‘0’, zero flag is SET.
3. If D value is decreased again from ‘0’, carry flag is
SET.
Arithmetic
operation ADDB S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
h0000 to h9999 ◎ ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 WORD Data address to execute the BCD addition operation with S1
h0000 to h9999
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
h0000 to h9999
<Ladder>
1. Adds the word value of S1 and that of S2, both are
composed of BCD codes, and then stores the result
into the destination word D as BCD code.
2. If any of the value not composed of the BCD code is
detected in S1 and S2, error flag is SET. (Except 0 to
9999)
3. If the result value is out of the range of D, carry flag
is SET.
4. If the result value is ‘0’, zero flag is SET.
Arithmetic
operation DADDB S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
h00000000 to h99999999 ◎ ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DWORD Data address to execute the BCD addition operation with S1
h00000000 to h99999999
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
h00000000 to h99999999
<Ladder>
1. Adds the double word values of S1 and S2, both are
composed of BCD codes, and then stores the result
into the destination double word D as BCD codes.
2. If any of the value not composed of the BCD code is
detected in S1 and S2, error flag is SET.
(Except 0 to 99999999)
3. If the result value is out of the range of D, carry flag
is SET.
4. If the result value is ‘0’, zero flag is SET.
Arithmetic
operation ADDBL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
h0000 to h9999 ◎ ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 WORD Data address to execute the BCD addition operation with S1
h0000 to h9999
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
h0000 to h9999
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Adds the word value of S1 composed of BCD code
and the number of N word values beginning with S2
also composed of BCD code, respectively, and then
stores the result into the number of N destination
words beginning with D as BCD code.
2. If any of the value not composed of the BCD code is
detected in S1 and S2, error flag is SET.
3. If any of the result value from D to D+N is out of the
D range, carry flag is SET.
4. If any of the result value from D to D+N is 0, zero
flag is SET.
Arithmetic
operation DADDBL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
h00000000 to h99999999 ◎ ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 DWORD Data address to execute the BCD addition operation with S1
h00000000 to h99999999
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
h00000000 to h99999999
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Adds the double word values S1 composed of BCD
code and the number of N double word values
beginning with S2 also composed of BCD code,
respectively, and then stores the result into the number
of N destination double words beginning with D double
word as BCD code.
2. If any of the value not composed of the BCD code is
detected in S1 and S2 error flag is SET.
3. If any of the result value from D and D+N is out of
the D range, carry flag is SET.
4. If any of the result value from D and D+N is 0, zero
flag is SET.
Arithmetic
operation SUBB S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
h0000 to h9999 ◎ ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 WORD Data address to execute the BCD subtraction operation with S1
h0000 to h9999
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
h0000 to h9999
<Ladder>
1. Subtracts the word value of S2 composed of BCD
code from the word value of S1 composed of BCD
code, and then stores the result into the destination
word D as BCD code.
2. If any of the value not composed of the BCD code is
detected in S1 and S2, error flag is SET. (Except 0 to
9999)
3. If the result value is negative number, it is stored as
‘h9999’.
4. If the result value is ‘0’, zero flag is SET.
Arithmetic
operation DSUBB S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
<Ladder>
1. Subtracts the double word value of S2 from double
word value of S1, both are composed of BCD code,
and then stores the result into the destination double
word D as BCD code.
2. If any of the value not composed of the BCD code is
detected in S1 and S2, error flag is SET. (Except 0 to
99999999)
3. If the result value is negative number, it is stored as
‘h9999’.
4. If the result value is ‘0’, zero flag is SET.
Arithmetic
operation SUBBL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
h0000 to h9999 ◎ ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 WORD Data address to execute the BCD subtraction operation with S1
h0000 to h9999
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
h0000 to h9999
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Subtracts the number of N words values composed
of BCD code beginning with S2 from word value of S1
composed of BCD code and then stores the result into
the number of N destination words beginning with D as
BCD code.
2. If any of the value not composed of the BCD code is
detected in S1 and S2, error flag is SET.
3. If any of the result value in the range from D to D+N
is negative number in word area, it is stored as
‘h9999’.
4. If any of the result value in the range from D to D+N
is ‘0’, zero flag is SET.
Arithmetic
operation DSUBBL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
h00000000 to h99999999 ◎ ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 DWORD Data address to execute the BCD subtraction operation with S1
h00000000 to h99999999
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
h00000000 to h99999999
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Subtracts the number of N double word values from
S2 to S2(N-1), composed of BCD code, from the
double word value of S1 composed of BCD code
respectively, and then stores the result into the number
of N destination double words beginning with D as
BCD code.
2. If any of the value not composed of the BCD code is
detected in S1 and S2, error flag is SET.
3. If any of the result value in the range from D to D+N
is out of the D range, carry flag is SET.
4. If any of the result value in the range from D to D+N
is ‘0’, zero flag is SET.
Arithmetic
operation MULB S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
h0000 to h9999 ◎ ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 WORD Data address to execute the BCD multiplication with S1
h0000 to h9999
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
h00000000 to h99999999
<Ladder>
1. Multiplies the word value of S1 and that of S2, both
are composed of BCD code and then stores the
result into the destination double word D as BCD
code.
2. If any of the value not composed of the BCD code
is detected in S1 and S2, error flag is SET. (Except 0
to 9999)
3. If the result value is out of the D range, carry flag is
SET.
4. If the result value is ‘0’, zero flag is SET.
Arithmetic
operation DMULB S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
h00000000 to h99999999 ◎ ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DWORD Data address to execute the BCD multiplication with S1
h00000000 to h99999999
Y, F, Z, T, C, M, S, L, D, UW
D QWORD Address to save the operation result
<Ladder>
1. Multiplies the double word value of S1 and that of
S2, both are composed of BCD code, and then stores
the result into the destination quad word D as BCD
code.
2. If any of the value not composed of the BCD code is
detected in S1 and S2, error flag is SET.
(Except 0 to 99999999)
3. If the result value is out of the D range, carry flag is
SET.
4. If the result value is ‘0’, zero flag is SET.
Arithmetic
operation MULBL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
h0000 to h9999 ◎ ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 WORD Data address to execute the BCD multiplication with S1
h0000 to h9999
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
h00000000 to h99999999
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Multiplies the word value of S1 and the number of N
word values from S2 to S2(N-1), both are composed of
BCD code, one by one, and then stores the result into
the number of N destination double words beginning
with D as BCD code.
2. If any of the value not composed of the BCD code is
detected in S1 and S2, error flag is SET.
3. If any of the result value in the range from D to D+N
is out of the D range, carry flag is SET.
4. If any of the result value in the range from D to D+N
is ‘0’, zero flag is SET.
Arithmetic
operation DMULBL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
h00000000 to h99999999 ◎ ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 DWORD Data address to execute the BCD multiplication with S1
h00000000 to h99999999
Y, F, Z, T, C, M, S, L, D, UW
D QWORD Address to save the operation result
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Multiplies the double word value of S1 composed of
BCD code and the number of N double words from S2
to S2(N-1) composed of BCD code, one by one, and
then stores the result into the number of N destination
quad words beginning with D as BCD code.
2. If any of the value not composed of the BCD code is
detected in S1 and S2, error flag is SET.
3. If any of the result value in the range from D to D+N
is out of the D range, carry flag is SET.
4. If any of the result value in the range from D to D+N
is ‘0’, zero flag is SET.
Arithmetic
operation DIVB S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
h0000 to h9999 ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 WORD Data address to execute the BCD division operation with S1
h0000 to h9999
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
h0000 to h9999
<Ladder>
1. Divides the word value of S1 composed of BCD
code by the word value of S2 composed of BCD code,
and then stores the quotient and the remainder into the
D and D+1 words respectively.
2. If S2 is 0, or either S1 or S2 is not the BCD code,
error flag is SET.
3. If the quotient is ‘0’, zero flag is SET.
(Quotient)
(Remainder)
Arithmetic
operation DDIVB S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
h00000000 to h99999999 ◎ ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DWORD Data address to execute the BCD division operation with S1
h00000000 to h99999999
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
h00000000 to h99999999
<Ladder>
1. Divides the double word value of S1 composed of
BCD code by the double word value of S2 composed
of BCD code, and then stores the quotient and the
remainder into the D and D+1 double words
respectively.
2. If S2 is 0, or either S1 or S2 is not the BCD code,
error flag is SET.
3. If the quotient is ‘0’, zero flag is SET.
(Quotient)
(Remainder)
Arithmetic
operation DIVBL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
h0000 to h9999 ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 WORD Data address to execute the BCD division operation with S1
h0000 to h9999
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
h0000 to h9999
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Divides the word value of S1 composed of BCD
code by the number of N word values from S2 to S2(N-
1) composed of BCD code, and then stores the
quotient and the remainder into the D and D+1 double
words respectively.
2. If S2 is 0, or either S1 or S2 is not the BCD code,
error flag is SET.
3. If the quotient is ‘0’, zero flag is SET.
(Quotient)
(Remainder)
Arithmetic
operation DDIVBL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
h00000000 to h99999999 ◎ ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 DWORD Data address to execute the BCD division operation with S1
h00000000 to h99999999
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
h00000000 to h99999999
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Divides the double word value of S1 composed of
BCD code by the number of N double word values
from S2 to S2(N-1), composed of BCD code, and then
stores the quotient and the remainder into the D and
D+1 double words respectively.
2. If S2 is 0, or either S1 or S2 is not the BCD code,
error flag is SET.
3. If the quotient is ‘0’, zero flag is SET.
(Quotient)
(Remainder)
Arithmetic
operation INCB D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
h0000 to h9999 ◎ ◎ ◎ 3
<Ladder>
1. Increases the word value of D composed of BCD
code by 1 as BCD code.
2. If the word value of D is not the BCD code, error flag
is SET.
3. If the increased result is 0(BCD), zero flag is SET.
4. If the result value is out of the D word range, carry
flag is SET.
Arithmetic
operation DINCB D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
h00000000 to h99999999 ◎ ◎ ◎ 3
<Ladder>
1. Increases the double word value of D composed of
BCD code by 1 as BCD code.
2. If the double word value of D is not the BCD code,
error flag is SET.
3. If the increased result is 0(BCD), zero flag is SET.
4. If the result value is out of the D double word range,
carry flag is SET.
Arithmetic
operation DECB D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
h0000 to h9999 ◎ ◎ ◎ 3
<Ladder>
1. Decreases the word value of D composed of BCD
code by 1 as BCD code.
2. If the word value of D is not the BCD code, error flag
is SET.
3. If the decreased result is 0(BCD), zero flag is SET.
4. If the result value is out of D word range, borrow flag
is SET.
Arithmetic
operation DDECB D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, F, Z, T, C, M, S, L, D, UW
h00000000 to h99999999 ◎ ◎ ◎ 3
<Ladder>
1. Decreases the double word of D composed of BCD
code by 1 as BCD code.
2. If the double word value of D is not BCD code, error
flag is SET.
3. If the decreased result is 0(BCD), zero flag is SET.
4. If the result value is out of the D double word range,
borrow flag is SET.
Logical
operation WAND S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 65535(hFFFF) ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 WORD Data address to execute the ‘&’ operation with S1
0(h0000) to 65535(hFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
0(h0000) to 65535(hFFFF)
<Ladder>
1. Executes the ‘&’ operation for every bit of S1 word
and the corresponding bit of S2 word and then stores
the result into the D word.
2. If the result value is ‘0’, zero flag is SET.
Logical
operation DAND S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 4294967295(hFFFFFFFF) ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DWORD Data address to execute the ‘&’ operation with S1
0(h0000) to 4294967295(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
0(h0000) to 4294967295(hFFFFFFFF)
<Ladder>
1. Executes the ‘&’ operation for every bit of S1
double word and the corresponding bit of S2 double
word and then stores the result into the D double
word.
2. If the result value is ‘0’, zero flag is SET.
Logical
operation AAND S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, T, C, M, UB
S1 BIT Start address of the bit device to execute the ‘&’ operation with S2
Not applicable ◎ 9
X, Y, F, T, C, M, UB
S2 BIT Start address of the bit device to execute the '&' operation with S1
Not applicable
Y, F, T, C, M, UB
D BIT Start address of the bit device to store the operation result
Not applicable
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of bit device to execute the operation including the
N WORD start address
As many as the number of devices remained in the corresponding
S1, S2, and D area
<Ladder>
Executes the ‘&’ operation for the number of N bits,
from S1 to SN, and the number of N bits, from S2 to
S2(N-1), and then stores the result into the number of
N bits beginning with D.
Upper bit
Upper bit
Upper bit
Upper bit
Logical
operation WANDL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 65535(hFFFF) ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 WORD Data address to execute the ‘&’ operation with S1
0(h0000) to 65535(hFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
0(h0000) to 65535(hFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Executes the bitwise ‘&’ operation for every bit of S1
word and the number of N words from S2 to S2 (N-1)
and then stores the result into the number of N words
beginning with D.
2. If the result value is ‘0’ word, zero flag is SET.
Logical
operation DANDL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 4294967295(hFFFFFFFF) ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 DWORD Data address to execute the ‘&’ operation with S1
0(h0000) to 4294967295(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
0(h0000) to 4294967295(hFFFFFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Executes the bitwise ‘&’ operation for every bit of S1
double words and the number of N words from S2 to
S2 (N-1) and then stores the result into the number of
N words beginning with D.
2. If the result value is ‘0’ double word, zero flag is
SET.
Logical
operation WOR S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 65535(hFFFF) ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 WORD Data address to execute the ‘OR’ operation with S1
0(h0000) to 65535(hFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
0(h0000) to 65535(hFFFF)
<Ladder>
1. Executes the logical ‘OR’ operation for every bit in
S1 words and the corresponding bit of S2 words and
then stores the result into the D word.
2. If the result value is ‘0’, zero flag is SET.
Logical
operation DOR S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 4294967295(hFFFFFFFF) ◎ 5
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DWORD Data address to execute the ‘OR’ operation with S1
0(h0000) to 4294967295(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
0(h0000) to 4294967295(hFFFFFFFF)
<Ladder>
1. Executes the logical ‘OR’ operation for every bit of
S1 double words and the corresponding bit of S2
double words, and then stores the result into the D
double word.
2. If the result value is ‘0’, zero flag is SET.
Logical
operation AOR S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, T, C, M, UB
Not applicable ◎ 9
X, Y, F, T, C, M, UB
S2 BIT Data address to execute the ‘OR’ operation with S1
Not applicable
Y, F, T, C, M, UB
D BIT Start address of the bit device to save the operation result
Not applicable
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of bit devices to execute the operation including the
N WORD start address
As many as the number of devices remained in the corresponding
S1, S2, and D area
<Ladder>
Executes the logical ‘OR’ operation for the number of N
bits from S1 to SN and the number of N bits from S2 to
S2(N- 1), and then stores the result into the number of
N bits beginning with D.
Upper bit
Upper bit
Upper bit
Upper bit
Logical
operation WORL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 65535(hFFFF) ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 WORD Data address to execute the ‘OR’ operation with S1
0(h0000) to 65535(hFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
0(h0000) to 65535(hFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Executes the bitwise logical ‘OR’ operation for
every bit of S1 words and the number of N words
from S2 to S2 (N-1), and then stores the result into
the D word.
2. If the result value is ‘0’ word, zero flag is SET.
Logical
operation DORL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 4294967295(hFFFFFFFF) ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 DWORD Data address to execute the ‘OR’ operation with S1
0(h0000) to 4294967295(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
0(h0000) to 4294967295(hFFFFFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Executes the bitwise logical ‘OR’ operation for
every bit of S1 double word and the number of N
double words from S2 to S2(N-1) respectively and
then stores the result into the number of N double
words beginning with D double word.
2. If the result value is ‘0’ double word, zero flag is
SET.
Logical
operation XOR S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 65535(hFFFF) ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 WORD Data address to execute the ‘XOR’ operation with S1
0(h0000) to 65535(hFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
0(h0000) to 65535(hFFFF)
<Ladder>
1. Executes the logical ‘XOR’ operation for every bit
of S1 word and the corresponding bit of S2 word and
then stores the result into the D word.
2. If the result value is ‘0’, zero flag is SET.
Logical
operation DXOR S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 4294967295(hFFFFFFFF) ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DWORD Data address to execute the ‘XOR’ operation with S1
0(h0000) to 4294967295(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
0(h0000) to 4294967295(hFFFFFFFF)
<Ladder>
1. Executes the logical ‘XOR’ operation for every bit of
S1 double word and the corresponding bit of S2
double word and then stores the result into the D
double word.
2. If the result value is ‘0’, zero flag is SET.
Logical
operation AXOR S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, T, C, M, UB
S1 BIT Start address of the bit device to execute the ‘XOR’ operation with S2
Not applicable ◎ 9
X, Y, F, T, C, M, UB
S2 BIT Start address of the bit device to execute the ‘XOR’ operation with S1
Not applicable
Y, F, T, C, M, UB
D BIT Address to save the operation result
Not applicable
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of bit devices including the start address to execute
N WORD the operation
As many as the number of devices remained in S1, S2 and D area
<Ladder>
Executes the logical ‘XOR’ operation for the number
of N bits from S1 to SN and the number of N bits from
S2 to S2 (N-1), bit by bit, and then stores the result
into the number of N bits beginning with D destination
bit.
N
Upper bit
Upper bit N
Upper bit
Upper bit
Upper bit
bit
Logical
operation XORL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 65535(hFFFF) ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 WORD Data address to execute the ‘XOR’ operation with S1
0(h0000) to 65535(hFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
0(h0000) to 65535(hFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Executes the bitwise logical ‘XOR’ operation for
every bit of S1 word and the number of N words, from
S2 to S2 (N-1), then stores the result into the number
of N words beginning with D.
2. If the result value is ‘0’ word, zero flag is SET.
Logical
operation DXORL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 4294967295(hFFFFFFFF) ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 DWORD Data address to execute the ‘XOR’ operation with S1
0(h0000) to 4294967295(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
0(h0000) to 4294967295(hFFFFFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Executes the bitwise logical ‘XOR’ operation for
every bit of S1 double word and the number of N
double words from S2 to S2 (N-1), and then stores
the result into the number of N double words
beginning with D.
2. If the result value is ‘0’ double word, zero flag is
SET.
Logical
operation XNR S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 65535(hFFFF) ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 WORD Data address to execute the ‘XNR’ operation with S1
0(h0000) to 65535(hFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
0(h0000) to 65535(hFFFF)
<Ladder>
1. Executes the logical ‘XNR’ operation for every bit
of S1 word and the corresponding bit of S2 word, bit
by bit, and then stores the result into the D word.
2. If the result value is ‘0’, zero flag is SET.
Logical
operation DXNR S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 4294967295(hFFFFFFFF) ◎ 7
X, Y, F, Z, T, C, M, S, L, D, UW, integer
S2 DWORD Data address to execute the ‘XNR’ operation with S1
0(h0000) to 4294967295(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
0(h0000) to 4294967295(hFFFFFFFF)
<Ladder>
1. Executes the logical ‘XNR’ operation for every bit
of S1 double word and the corresponding bit of S2
double word, and then stores the result into the D
double word.
2. If the result value is ‘0’, zero flag is SET.
Logical
operation AXNR S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, T, C, M, UB
S1 BIT Start address of the bit device to execute the ‘XNR’ operation with S2
Not applicable ◎ 9
X, Y, F, T, C, M, UB
S2 BIT Start address of the bit device to execute the ‘XNR’ operation with S1
Not applicable
Y, F, T, C, M, UB
D BIT Start address of the bit device to save the operation result
Not applicable
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of bit devices to execute the operation including the
N WORD start address
As many as the number of devices remained in the corresponding
S1, S2, and D area
<Ladder>
Executes the logical ‘XNR’ operation for the number
of N bits from S1 to SN and the number of N bits from
S2 to S2 (N-1), and then stores the result into the
number of N bits beginning with D destination bit.
Upper bit
Upper bit
Upper bit
Upper bit
Logical
operation XNRL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 65535(hFFFF) ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 WORD Data address to execute the ‘XNR’ operation with S1
0(h0000) to 65535(hFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D WORD Address to save the operation result
0(h0000) to 65535(hFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Executes the bitwise logical ‘XNR’ operation for
every bit of S1 word and the number of N words from
S2 to S2 (N-1) bit by bit, and then stores the result into
the number of N words from D word.
2. If the result value is ‘0’ word, zero flag is SET.
Logical
operation DXNRL S1 S2 D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0(h0000) to 4294967295(hFFFFFFFF) ◎ 9
X, Y, F, Z, T, C, M, S, L, D, UW
S2 DWORD Data address to execute the ‘XNR’ operation with S1
0(h0000) to 4294967295(hFFFFFFFF)
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Address to save the operation result
0(h0000) to 4294967295(hFFFFFFFF)
X, Y, F, Z, T, C, M, S, L, D, UW, integer
The number of S2 data address and saved address to execute the
N WORD operation with S1
In the range within the corresponding device area of S2 and D
<Ladder>
1. Executes the logical ‘XNR’ operation for every bit of
S1 double word and the number of N double words
from S2 to S2 (N-1), bit by bit, and then stores the
result into the number of N double words beginning
with D.
2. If the result value is ‘0’ double word, zero flag is
SET.
BIN/BCD
conversion BIN2BCD S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0 to 9999(h0000 to h270F) ◎ 5
Y, F, Z, T, C, M, S, L, D, UW
D WORD Device address to save converted data
h0000 to h9999
<Ladder>
1. Converts the BINARY data (0 to h270F) stored in S
device into the BCD data and then stores the result
into the D word.
2. If the converted value is out of the range between
0 to 9999 (BIN data 0 to h270F), error flag is SET.
BIN/BCD
conversion DBIN2BCD S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, F, Z, T, C, M, S, L, D, UW, integer
0 to 99999999(h00000000 to h05F5E0FF) ◎ 5
Y, F, Z, T, C, M, S, L, D, UW
D DWORD Device address to save converted data
h00000000 to h99999999
<Ladder>
1. Converts the BINARY data (0 to h05F5E0FF)
stored in S double word into the BCD data, and then
stores the result into the D double word.
2. If the converted value is out of the range from 0 to
99999999 (BIN data 0 to h05F5E0FF), error flag is
SET.
BIN/BCD
conversion BCD2BIN S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW, integer
S WORD Device address which saves BCD data to be converted as BIN value
h0000 to h9999 ◎ 5
Y, M, S, T, C, D, Z, F, UW
D WORD Device address to save converted data
0 to 9999(h0000 to h270F)
<Ladder>
1. Converts the BCD code (0 to 9999) stored in S
word into the BINARY data and then stores the result
into the D word.
2. If the S word is not the BCD code, error flag is
SET.
BIN/BCD
conversion DBCD2BIN S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW, integer
S DWORD Device address which saves BCD data to be converted as BIN value
h00000000 to h99999999 ◎ 5
Y, M, S, T, C, D, Z, F, UW
D DWORD Device address to save converted data
0 to 99999999(h00000000 to h05F5E0FF)
<Ladder>
1. Converts the BCD data stored in S double word
into the BINARY data, and then stores the result into
the D double word.
2. If the S double word is not the BCD code, error flag
is SET.
String
conversion BIN2HASC S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW, integer
h0000 to hFFFF 5
Y, M, S, T, C, D, Z, F, UW
D WORD Device address to save converted data
Allowable range per byte(h30 to h39, h41 to h46)
<Ladder>
1. Converts the BINARY data stored in S word into the
HEX ASCII one by one in order from the upper order
value.
2. The converted value is sequentially stored in D
double word beginning with D, by 2 digits per word.
3. The operation range is ‘h0000 to hFFFF’.
Upper Upper
8bit word
Lower Lower
8bit word
String
conversion DBIN2HASC S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW, integer
h00000000 to hFFFFFFFF 5
Y, M, S, T, C, D, Z, F, UW
D QWORD Device address to save converted data
Allowable range per byte (h30 to h39, h41 to h46)
<Ladder>
1. Converts the BINARY data stored in S double word
into the HEX ASCII one by one in order from the
upper order value.
2. The converted value is sequentially stored in D
quad word beginning with D, by 2 digits per word.
3. The operation range is h00000000 to HFFFFFFFF.
String
conversion HASC2BIN S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW
Device address which saves HEX ASCII value to be converted
S WORD data as BIN value
Allowable range per byte (h30 to h39, h41 to h46) ◎ 5
Y, M, S, T, C, D, Z, F, UW
D WORD Device address to save converted data
h0000 to hFFFF
<Ladder>
1. Recognizes the double word value of S as ASCII
and stores the corresponding value into the D word.
2. If the converted value is not the HEX ASCII, error
bit (F34) is SET. (h30 to h39, h41 to h46)
Upper
order word
Upper 8bit
(S+1)
Lower order
Lower 8bit
word (S)
HEX ASCII
value
String
conversion DHASC2BIN S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW
Device address which saves HEX ASCII value to be converted
S DWORD data as BIN value
Allowable range per byte (h30 to h39, h41 to h46) ◎ 5
Y, M, S, T, C, D, Z, F, UW
D DWORD Device address to save converted data
h00000000 to hFFFFFFFF
<Ladder>
1. Recognizes the quad word value of S as ASCII and
stores the corresponding value into the D double
word.
2. If the converted value is not the HEX ASCII, error
bit (F34) is SET. (h30 to h39, h41 to h46)
High order
word (S+1) Upper 8bit
Lower order
Lower 8bit
word (S)
HEX ASCII
value
String
conversion BCD2DASC S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW, integer
Device address which saves the data to be converted data as
S WORD ASCII value
h0000 to hFFFF ◎ 5
Y, M, S, T, C, D, Z, F, UW
D DWORD Device address to save converted data
Allowable range per byte (h30 to h39, h41 to h46)
<Ladder>
1. Recognizes BCD data stored in S word as decimal
number, converts each digit into the ASCII value and
then stores them sequentially into the D double word.
2. The operation range is ‘h0000 to h9999’.
3. If the S word is not the BCD code, error flag is
SET.
Upper Upper
8bit word
Lower
Lower word
8bit
String
conversion DBCD2DASC S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW, integer
Device address which saves the BCD data to be converted data
S DWORD
as ASCII value
h00000000 to h999999999 ◎ 5
Y, M, S, T, C, D, Z, F, UW
D QWORD Device address to save converted data
Allowable range per byte (h30 to h39, h41 to h46)
<Ladder>
1. Recognizes BCD data stored in S double word as
decimal number, converts each digit into the ASCII
value and then stores them sequentially into the D
word.
2. The operation range is h00000000 to h99999999.
3. If the S word is not the BCD code, error flag is SET.
Upper 8 bit of
D+3 word (Upper)
upper word
String
conversion DASC2BIN S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW
Device address which saves the Dec ASCII data to be converted
S WORD as BIN value
h30 to h39 per byte except sign bit (h2D, h28) ◎ 5
Y, M, S, T, C, D, Z, F, UW
D WORD Device address to save converted data
-32768(h8000) to 32767(h7FFF)
<Ladder>
1. Recognizes the ASCII data stored in S word as
decimal number, convert each digit into the BINARY
value, and then stores them into the D word.
2. The lower order byte of the first source word
determines the sign of the BINARY value.
3. The sign value is +(H2B), -(H2D).
4. If the sign value is positive, it can be omitted.
5. The D word is stored as Signed.
6. The operation range is -32768(h8000) to 32767
(h7FFF).
7. If the S word is not in the valid ASCII (h30 to h39)
range, corresponding to 0 to 9, error bit (F34) is SET.
Ex) If omitting the sign, the highest ASCII The highest code value is located in the sign data.
Code
S word converting D word
Decimal
BIN data
data
S word +1
String
conversion DDASC2BIN S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW, integer
Device address which saves the Dec ASCII data to be converted
S WORD as BIN value
h30 to h39 per byte except sign bit (h2D, h28) ◎ 5
Y, M, S, T, C, D, Z, F, UW
D DINT Device address to save converted data
-2147483648(h80000000) to 2147483647(hFFFFFFFF)
<Ladder>
1. Recognizes the ASCII data stored in S word as
decimal number and convert each digit into the
BINARY value then stores them into the D word.
2. The lower order byte of the first source word
determines the sign of the BINARY value.
3. The sign value is +(H2B), -(H2D).
4. If the sign value is positive, it can be omitted.
5. The D word is stored as Signed.
6. The operation range is -2147483648 (h80000000)
to 2147483647 (h7FFFFFFF).
7. If the S word is not in the valid ASCII (h30 to h39)
range, corresponding to 0 to 9, error bit (F34) is SET.
String
conversion STR2ASC S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
STRING
String 7
Y, M, S, T, C, D, Z, F, UW
D WORD Device address to save converted data
ASCII value
<Ladder>
1. Converts STRING into the ASCII and then stores it
sequentially into the D.
2. It is available to input up to 128 characters.
D word
ASCII code
S word
converting
D word+1
String
String
conversion DASC2BCD S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW, integer
Device address which saves the Dec ASCII data to be converted
S WORD as BCD value
h30 to h39 per byte except sign bit (h2D, h28) ◎ 5
Y, M, S, T, C, D, Z, F, UW
D WORD Device address to save converted data
h0000 to h9999
<Ladder>
1. Recognizes the ASCII data stored in S word as
decimal number and convert it into the BCD code
then stores it into the D word.
2. The converted value is stored as Unsigned and the
operation range is h0000 to h9999.
3. If the converted result is not in the valid ASCII
range (h30 to h39), error flag is SET.
Code
S word D word
converting
Decimal
BCD data
S word+1 data
String
conversion DDASC2BCD S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW, integer
Device address which saves the Dec ASCII data to be converted
S WORD as BCD value
Allowable range per byte (h30 to h39) ◎ 5
Y, M, S, T, C, D, Z, F, UW
D DWORD Device address to save converted data
h00000000 to h99999999
<Ladder>
1. Recognizes the ASCII data stored in S word as
decimal number and convert it into the BCD code,
then stores it into the D word one by one.
2. The converted value is stored as Unsigned, and
the operation range is ‘h00000000 to h99999999’.
3. If the converted result is not in the valid ASCII
range (h30 to h39), error flag is SET. (BCD range: 0
to 9)
String
conversion BIN2DASC S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW, integer
S WORD Device address which saves the data to be converted as ASCII value
-32768(h8000) to 32767(h7FFF) 5
Y, M, S, T, C, D, Z, F, UW
D WORD Device address to save converted data
h30 to h39 per byte except sign bit (h2D, h28)
<Ladder>
1. Recognizes the BIN data stored in S word as
decimal number and converts it into the ASCII code,
then stores it sequentially into the D, beginning with D
word, by 2 digits per word.
2. If the word value of S is negative, the sign value ‘–
(H2D)’ will firstly be output on the first byte of D word.
3. Executes the Signed operation, and the operation
range is -32768 (h8000) to 32767 (h7FFF).
Code
S D word
converting
Decimal
BIN data
data D word+1
S Code
D word
converting
Decimal
BIN data
data D word+1
D word+2
String
conversion DBIN2DASC S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW, integer
S DINT Device address which saves the data to be converted as ASCII value
-2147483648(h80000000) to 2147483647(hFFFFFFFF) ◎ 5
Y, M, S, T, C, D, Z, F, UW
D WORD Device address to save converted data
h30 to h39 per byte except sign bit (h2D, h28)
<Ladder>
1. Recognizes the BIN data stored in S double word as
decimal number and converts it into the ASC II, then
stores it into the D word beginning with D, by 2 digits
per word.
2. If the word value of S is negative, the sign value ‘–
(H2D)’ will firstly be output on the first byte of D word.
3. Executes the Signed operation, and the operation
range is -2147483648 (h80000000) to 2147483647
(h7FFFFFFF).
Code
BIN data Decimal data converting D word+1 3rd ASCII code value 2nd ASCII code value
Code
conversion GRY2BIN S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW, integer
Device address which saves the GRAY code data to be converted
S WORD as BIN value
0(h0000) to 65535(hFFFF) 5
Y, M, S, T, C, D, Z, F, UW
D WORD Device address to save converted data
0(h0000) to 65535(hFFFF)
<Ladder>
Converts the GRAY code data stored in S word into
the BINARY data and stores it into the D.
Code
conversion DGRY2BIN S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW, integer
Device address which saves the GRAY code data to be converted
S DWORD as BIN value
0(h00000000) to 4294967295(hFFFFFFFF) 5
Y, M, S, T, C, D, Z, F, UW
D DWORD Device address to save converted data
0(h00000000) to 4294967295(hFFFFFFFF)
<Ladder>
Converts the GRAY code data stored in S double
word into the BINARY data and stores it into the D
double word.
S double GRAY
word code
D double
BIN code
word
Code
conversion BIN2GRY S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW, integer
Device address which saves the data to be converted as GRAY
S WORD code value
0(h0000) to 65535(hFFFF) 5
Y, M, S, T, C, D, Z, F, UW
D WORD Device address to save converted data
0(h0000) to 65535(hFFFF)
<Ladder>
Converts the BINARY code data stored in S word into
the GRAY code data and then stores it into the D
word.
Code
conversion DBIN2GRY S D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UM, integer
Device address which saves the data to be converted as GRAY
S DWORD code value
0(h00000000) to 4294967295(hFFFFFFFF) 5
Y, M, S, T, C, D, Z, F, UW
D DWORD Device address to save converted data
0(h00000000) to 4294967295(hFFFFFFFF)
<Ladder>
Converts the BINARY code data stored in S double
word into the GRAY code data and then stores it into
the D double word.
S double
BIN code
word
D double
word GRAY code
Sign reversal
NEG D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, M, S, T, C, D, Z, F, UW
<Ladder>
Reverses the sign of D word.
Sign
reversing
Sign reversal
DNEG D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, M, S, T, C, D, Z, F, UW
<Ladder>
Reverses the sign of D double word.
Sign
reversing
Data
conversion DECO S D N Applicable model
Instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW
0(h0000) to 65535(hFFFF) ◎ 7
Y, M, S, T, C, D, Z, F, UW
D WORD Address to save the operation result
0(h0000) to 65535(hFFFF)
X, Y, M, S, T, C, D, Z, F, UW, integer
N WORD The number of bits to be decoded
0 to 8
<Ladder>
1. Decodes the number of B bits stored in S word
from 0 to N and stores the result into the D word.
2. If the N is 0, it does not execute the instruction.
3. If the decoded value is not in the range from 0 to 8,
error flag is SET.
2N = 25 = 32 bit
Bit21 is SET
Data
conversion ENCO S D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW
0(h0000) to 65535(hFFFF) ◎ ◎ 7
Y, M, S, T, C, D, Z, F, UW
D WORD Address to save the operation result
0(h0000) to 65535(hFFFF)
X, Y, M, S, T, C, D, Z, F, UW, integer
N WORD The number of words to be encoded
0 to 8
<Ladder>
1. Encodes the number of N words from S to N and
stores them into the D.
2. If the N is not in the range from 0 to 8, error flag is
SET.
3. If the encoded value is 0, zero flag is SET.
4. If N is 0, it does not execute the instruction.
When N is 3,
Bit 41
Data
conversion EXT D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, M, S, D, UW
-32768(h8000) to 32767(h7FFF) 3
<Ladder>
1. Extends the value of D word to 32bit.
2. Executes the Signed operation.
Extends to 32 bit
Refresh
REF D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
X, Y
Error
Zero
Carry
Borrow
Step
D BIT Input/Output bit device
Not applicable 5
X, Y, M, S, T, C, D, Z, F, UW, integer
N WORD The number of bit devices to refresh from D bit
0 to 65535
<Ladder>
Refreshes the number of N bit devices beginning with
I/O D bit device.
Display
SEG S D N Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, UB
<Ladder>
Decodes the number of N data composed of 4 bit per
each to the 7 segment data, one by one, and stores it
as the number of N data composed of 8 bit per each.
[Segment structure]
Ex) When N is 3
Upper bit S1 bit
Segment
Decode
Segment display
“X”: It does not matter whether you input HIGH or LOW level signal.
Blank: It does not display anything even if you input the signal by using input data.
If you connect BI terminal to the VCC (HIGH level) D, it executes the Zero blanking, and if you
connect BI terminal to the GND (LOW level) terminal, it displays 0.
*AUTONICS display unit has embedded DECODER DRIVER, therefore you can use S bit without
D (Destination) bit.
Clock
TCMP S1 S2 S3 S4 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW, integer
Device address which saves the data to be compared with ‘hour’
S1 WORD data of S4
0(h0000) to 23(h0017) ◎ 7
X, Y, M, S, T, C, D, Z, F, UW, integer
Device address which saves the data to be compared with ‘minute’
S2 WORD data of S4
0(h0000) to 59(h0038)
X, Y, M, S, T, C, D, Z, F, UW, integer
Device address which saves the data to be compared with
S3 WORD ‘second’ data of S4
0(h0000) to 59(h0038)
X, Y, M, S, T, C, D, Z, F, UW
Device address, which saves the data to be compared with the data
S4 WORD of S1, S2 and S3.
Time data range
Y, M, S, T, C, Z, F, UB
D BIT Bit device address to save the comparison result
Not applicable
<Ladder>
Compares a data composed of S1(hour), S2(minute),
and S3(second) with a data composed of S4 to S4+2
word, and as a result;
1. If the two values are equal, D bit turns ON.
2. If S4 is less than the former, D+1 bit turns ON.
3. If S4 is larger than the former, D+2 bit turns ON.
S4 word (hour)
4. If S4 value is read as TRD instruction and
Compar-
available.
ison 5. If the input value is not time data (hour: 0 to 23,
S1(hour) S2(min) S3(sec) S4 + 1word (min)
minute: 0 to 59, second: 0 to 59) error flag is SET.
S4 + 2word (sec)
Clock
TADD S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW
Device address which saves the data to execute the time addition
S1 WORD operation with S2
Time data range ◎ ◎ 7
X, Y, M, S, T, C, D, Z, F, UW
Device address which saves the data to execute the time addition
S2 WORD operation with S1
Time data range
Y, M, S, T, C, D, Z, F, UW
D WORD Address to save the operation result
Time data range
<Ladder>
1. Executes the addition operation for each word of
S1 device, in which S1(hour), S1+1(minute), or
S1+2(second), is stored, and the corresponding word
of S2 device, in which S2(hour), S2+1(minute), or
S2+2(second) is stored, and store the result into the
designated word of D device respectively.
2. If the time exceeds 24 o’clock, carry flag occurs
and the data is stored from 0 again.
3. If the input value is not time data (hour: 0 to 23,
minute: 0 to 59, second: 0 to 59) error flag is SET.
(Note) Recognizes and displays the data as binary
value.
Clock
TSUB S1 S2 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW
Device address which saves the data to execute the time
S1 WORD subtraction operation with S2
Time data range ◎ ◎ ◎ 7
X, Y, M, S, T, C, D, Z, F, UW
Device address which saves the data to execute the time
S2 WORD subtraction operation with S1
Time data range
Y, M, S, T, C, D, Z, F, UW
D WORD Address to save the operation result
Time data range
<Ladder>
1. Executes the subtraction operation for each word of
S1 device, in which S1(hour)/S1+1(minute)/S1+2
(second) is stored, and the corresponding word of S2
in which S2(hour), S2+1(minute) orS2+2 (second) is
stored, and then stores the result into the designated
word of D device.
2. If the time is less than 0 o’clock, borrow flag occurs
and stores the result after converting into 24-hour
data.
3. If the input value is not time data (hour: 0 to 23,
minute: 0 to 59, second: 0 to 59) error flag is SET.
(Note) Recognizes and displays the data as binary
value.
Clock
TRD D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, M, S, T, C, D, Z, F, UW
<Ladder>
The real time value is stored as below.
1. Year in D word
2. Month in D+1 word
3. Date in D+2 word
4. Hour in D+3 word
5. Minute in D+4 word
6. Second in D+5 word
7. Day of week in D+6 word
D word (year)
Clock
TWR D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Y, M, S, T, C, D, Z, F, UW
Device address which saves the time data to write on special
D WORD register
Time data range 3
<Ladder>
1. Year in D word
2. Month in D+1 word (1 to 12)
3. Date in D+2 word (1 to 31)
4. Hour in D+3 word (1 to 23)
5. Minute in D+4 word (1 to 59)
6. Second in D+5 word (1 to 59)
7. Day of week in D+6 word (0-sunday to 6-saturday)
are stored respectively.
8. Stores the time value into the corresponding
position of special register.
9. The special register (time setting) is also been
running along with executing TWR instruction.
10. If the input data is out of the valid time range,
error flag occurs.
D word (year)
Clock
HOUR S D1 D2 Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW, integer
S WORD Data device address to designate the accumulated time
0(h0000) to 65535(hFFFF) 7
Y, M, S, T, C, D, Z, F, UW
D1 WORD Data device address which saves the executed time value
0(h0000) to 65535(hFFFF)
Y, M, UB
The compared result between the executed time (D1) and the
D2 BIT designated accumulated time(S)
Not applicable
<Ladder>
1. If the input contact retains ON status for the
designated time (time unit) in S word device, D2 bit
turns ON.
2. The ON time value in D1 word device
3. The current value of less than 1 hour is displayed
in D1+1 word device at per one second.
Accumulated ON time of
S word (designated input contact
D2 bit ON
D1 word
D1+1 word
Clock
TZCP S1 S2 S3 D Applicable model
instruction
LP-S044, LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, Y, M, S, T, C, D, Z, F, UW
Device address which saves the data to compare with S2 and S3
S1 WORD data
Time data range ◎ 9
X, Y, M, S, T, C, D, Z, F, UW
Device address which saves the data to compare with S1 and S3
S2 WORD data
Time data range
X, Y, M, S, T, C, D, Z, F, UW
Device address which saves the data to compare with S1 and S2
S3 WORD data
Time data range
Y, M, S, T, C, Z, F, UB
D BIT Bit device address to save comparison result
Not applicable
<Ladder>
Hour in S1 word, minute in S1+1 word, second in
S1+2 word,
hour in S2 word, minute in S2+1 word, second in
S2+2 word,
hour in S3 word, minute in S3+1 word, second in
S3+2 word,
are stored respectively and compares the S3 device
value between S1 device and S2 device. As a result:
S3 position
Motion
MTVDM S S1 S2 S3 S4 S5 Applicable model
instruction
LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, M, D, Z, UW, integer
<Ladder>
Speed direct drive instruction: You can designate direct drive data (drive speed, drive direction, etc.) directly and it
executes speed drive.
[Note]
1. For utilize direct instruction, set ‘TRUE’ at
‘Enable Ch’ of common configuration from
[Parameter] - [MOTION] tab in AtLogic.
2. Select accel/deceleration time 1 to 5 in
common configuration from [Parameter]-
[MOTION] tab in AtLogic.
3. You should check whether the correspond
channel is using or not before using direct
drive instruction.
4. If using channel is input the other
Instruction, using channel error occurs.
Motion
MTPDM S S1 S2 S3 S4 S5 Applicable model
instruction
LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, M, D, Z, UW, integer
<Ladder>
Position direct drive instruction: You can designate direct drive data (drive speed, drive direction, etc.) directly and it
executes position drive.
[Note]
1. For utilize direct instruction, set ‘TRUE’ at
‘Enable Ch’ of common configuration from
[Parameter] - [MOTION] tab in AtLogic.
2. Select accel/deceleration time 1 to 5 in
common configuration from [Parameter]-
[MOTION] tab in AtLogic.
3. You should check whether the correspond
channel is using or not before using direct
drive instruction.
4. If using channel is input the other instruction,
using channel error occurs.
Motion
MTIDM S S1 Applicable model
instruction
LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, M, D, Z, UW, integer
<Ladder>
Indirect designate drive instruction: It operates with
the number of scripted string in the specified pattern
from pattern list.
[Note]
1. For utilize indirect drive instruction, set ‘TRUE’ at ‘Enable Ch’ of common configuration from [Parameter]-
[MOTION]tab in AtLogic.
2. There should be pattern number to execute of pattern list from [Parameter]-[MOTION] tab in AtLogic.
3. You should check whether the correspond channel is using or not before using drive instruction.
Motion
MTMEC S Applicable model
instruction
LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
X, M, D, Z, UW, integer
Error
Zero
Carry
Borrow
Step
S WORD Channel(Ch1, Ch2)
1 to 2 ◎ 5
<Ladder>
Motion
MTEMS S Applicable model
instruction
LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
X, M, D, Z, UW, integer
Error
Zero
Carry
Borrow
Step
S WORD Channel(Ch1, Ch2)
1 to 2 ◎ 5
<Ladder>
Emergency stop instruction: If there is emergency
during motion position driving, you can stop all
motion actions by emergency stop instruction.
[Note]
When executing emergency stop instruction, all
currently executing motion instructions stop.
Motion
MTCPP S S1 Applicable model
instruction
LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, M, D, Z, UW, integer
<Ladder>
[Note]
During motion driving, if this instruction is executed,
error occurs.
Motion
MTFOS S Applicable model
instruction
LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, M, D, Z, UW, integer
<Ladder>
Motion
MTSRS S Applicable model
instruction
LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, M, D, Z, UW, integer
<Ladder>
Normal stop instruction: It executes normal stop
instruction to the currently motion driving channel.
Motion
MTOBC S Applicable model
instruction
LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, M, D, Z, UW, integer
<Ladder>
Origin back instruction: During motion position
drive, if you want to return to origin, it goes back to
the preset origin point.
LP-S070 has two methods for returning the origin.
H/W origin back: It is the origin back method by
home search direction, upper/lower H/W limit,
and home sensing which are set in AtLogic.
S/W origin back: It is the origin back method to
move directly to the known origin by S/W.
[Origin back type by home search direction during H/W origin back]
Motion
MTOVV S S1 Applicable model
instruction
LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, M, D, Z, UW, integer
<Ladder>
Speed override: It converts the currently
operating speed set (unit set) to the other
speed and operates with the converted
speed.
[Note]
1. If the currently not operated channel is executed this instruction, position/speed override change error occurs.
2. If the currently operated channel is executed the other instruction, enable channel error occurs.
3. Be sure that rapid speed changing may cause the pullout of motor.
Motion
MTOVP S S1 Applicable model
instruction
LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, M, D, Z, UW, integer
<Ladder>
[Note]
1. If the currently not operated channel is
executed this instruction, position/speed
override change error occurs.
2. If the currently operated channel is
executed the other instruction, enable
channel error occurs.
Motion
MTIPT S S1 S4 S4 Applicable model
instruction
LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Integer
<Ladder>
Line interpolation instruction: It executes
line interpolation drive with two axes.
[Note]
1. The action list designated as speed drive
is not available as the axis between line
interpolations.
2. The axis, which is more distance than the
other, is set as main axis.
3. Drive data of sub axis is decided by the
calculating from the drive data of main axis.
4. If each distance of two axes is same,
CH1 becomes main axis.
Motion
MTUAI S S1 Applicable model
instruction
LP-S070,
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
X, M, D, Z, UW, integer
<Ladder>
Action item drive instruction
: It operates one action of motion referring the
number of action item.
[Note]
1. For utilize indirect drive instruction, set ‘TRUE’ at ‘Enable Ch’ of common configuration from [Parameter]-
[MOTION]tab in AtLogic.
2. There should be pattern number to execute of pattern list from [Parameter]-[MOTION] tab in AtLogic.
3. If the currently operated channel is executed the other instruction, enable channel error occurs.
High speed
counter HSCNT S S1 S2 D S3 Applicable model
instruction
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Integer
1 to 2 ◎ 7
C, UW
S1 WORD Counter contact to use
0 to 65535
Integer
High speed counter match value for triggering interrupt
S2 WORD
(parameter setting)
1 to 3
M, D, F, Z, T, Y, C, L, S, UB, 200, 100, 0
Output device or interrupt option for the current counting value
BIT or which is counted up to the match value
D
CONST (200: up counting→down counting, 100: down counting→up
counting, 0: no output)
None
Integer
S3 WORD Output device ON hold time
1 to 10000(us), 0: output continues
<Ladder>
High speed counting instruction: While the start
signal (M0) is ON, when the high-speed input
signal is applied to the input channel (S), word
device value of the counter contact (S1) counts
by 1. When the device value is counted up to the
match value (S2), interrupt is triggered or output
bit device is ON during set ON hold time (S3).
※ In case of making output pulse through the S3 parameter value, set S3 over 60us
<Time chart>
High speed
counter HSSET S S1 S2 Applicable model
instruction
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Integer
1 to 2 ◎ 7
Integer
High speed counter setting value
S1 DWORD (The value which is set as current counter value at the
occurrence of interrupt)
0 to 16777215
Integer
High speed counter match value for triggering interrupt
S2 WORD
(parameter setting)
1 to 2
<Ladder>
High speed counter set instruction: While the start
signal (M1) is ON, The current counting value is
counted up to the match value (S2), the current
counting value is set to the high speed counter setting
value (S1)
Use with HSCNT instruction.
※Only activates when the start signal is ON.
<Time chart>
High speed
counter HSRST S S1 Applicable model
instruction
LP-A070, LP-A104
OP DATA type Available device / Description / Range
Error
Zero
Carry
Borrow
Step
Integer
1 to 2 ◎ 7
Integer
High-speed counter setting value
S1 DWORD (The value which is set as current counter value when the device
M0 is turned ON in a scan time.)
0 to 16777215
<Ladder>
High speed counter reset instruction: When the HSRST
start signal (M1) is ON in a PLC program scan, the
current counting value is set to designated setting value
(S1).
Use with HSCNT instruction.
6 Appendix
MWL-ALV2P1-V1.1-1907US