Autonics Atlogic User-Manual

Download as pdf or txt
Download as pdf or txt
You are on page 1of 188

User Manual

Software

atLogic
V2.2.48

Thank you for purchasing an Autonics product.


This user manual contains information about the product and its proper use,
and should be kept in a place where it will be easy to access.

www.autonics.com
ii © Copyright Reserved Autonics Co., Ltd.
Preface

Preface
Thank you for purchasing Autonics product.
Please familiarize yourself with the information contained in the Safety Considerations section
before using this product.
This user manual contains information about the porduct and its proper use, and should be kept
in a place where it will be easy to access.

© Copyright Reserved Autonics Co., Ltd. iii


User Manual Guide

User Manual Guide


 Please familiarize yourself with the information in this manual before using the product.
 This manual provides detailed information on the product's features. It does not offer any
guarantee concerning matters beyond the scope of this manual.
 This manual may not be edited or reproduced in either part or whole without permission.
 This programming manual is not provided as part of the product package.
Please visit our website (www.autonics.com) to download a copy.
 The manual's content may vary depending on changes to the product's software and other
unforeseen developments within Autonics, and is subject to change without prior notice.
Upgrade notice is provided through our homepage.
 We contrived to describe this manual more easily and correctly. However, if there are any
corrections or questions, please notify us these on our website.

iv © Copyright Reserved Autonics Co., Ltd.


User Manual Symbols

User Manual Symbols


Symbol Description

Supplementary information for a particular feature.

Failure to follow instructions can result in serious injury or death.

Failure to follow instructions can lead to a minor injury or product damage.

An example of the concerned feature's use.

※1 Annotation mark.

※ The specifications and dimensions of this manual are subject to change


without any notice.

© Copyright Reserved Autonics Co., Ltd. v


Reference Manual for Each Configuration

Reference Manual for Each Configuration

Logic panel device specification, installation, maintenance, management, firmware


update and system configuration

Hardware Manual LP-A Series User Manual

Project drawing, programming

Software Drawing atDesigner User Manual


Manual Programming atLogic User Manual, atLogic Programming Manual

Project Upload/Download

Hardware Manual LP-A Series User Manual

Connected device setting, communication setting

Drawing atDesigner User Manual


Software Manual
Programming atLogic User Manual, atLogic Programming Manual
Hardware Manual LP-A Series User Manual

Check connectable device, connection cable model name and protocol

Communication Manual GP/LP Communication Manual

vi © Copyright Reserved Autonics Co., Ltd.


Table of Contents

Table of Contents
Preface ...................................................................................................................................................................... iii
User Manual Guide ............................................................................................................................................... iv
User Manual Symbols........................................................................................................................................... v
Reference Manual for Each Configuration ................................................................................................ vi
Table of Contents ................................................................................................................................................. vii

1 Overview .................................................................................................... 11
1.1 Feature of atLogic .............................................................................................................................. 11
1.2 System requirements......................................................................................................................... 12
1.3 Installation of atLogic ....................................................................................................................... 12
1.4 atLogic Screen Layout ...................................................................................................................... 13
1.4.1 Menu .......................................................................................................... 14
1.4.2 Toolbar........................................................................................................ 21
1.4.3 Work space ................................................................................................ 22
1.4.4 Message box .............................................................................................. 22
1.4.5 Status bar ................................................................................................... 23

2 Project ........................................................................................................ 25
2.1 New project ........................................................................................................................................... 25
2.2 Open project ......................................................................................................................................... 26
2.3 Open from PLC .................................................................................................................................... 26
2.4 Save project........................................................................................................................................... 26
2.5 Save Project As .................................................................................................................................... 27
2.6 Close project ......................................................................................................................................... 27
2.7 Load project .......................................................................................................................................... 27
2.7.1 New project ................................................................................................ 27
2.7.2 Saved project ............................................................................................. 28
2.7.3 Open from PLC .......................................................................................... 29
2.7.4 Change PLC Type ...................................................................................... 29
2.8 Print Project ........................................................................................................................................... 29
2.9 Preview .................................................................................................................................................... 29
2.10 Printer settings ..................................................................................................................................... 34
2.11 Exit ............................................................................................................................................................. 34

3 Edit ............................................................................................................. 35
3.1 Undo ......................................................................................................................................................... 35
3.2 Cut ............................................................................................................................................................. 36
3.3 Copy .......................................................................................................................................................... 37
3.4 Paste ......................................................................................................................................................... 37
3.5 Insert mode/Edit mode.................................................................................................................... 37
3.6 Insert line ................................................................................................................................................ 38
3.7 Delete line .............................................................................................................................................. 39
3.8 Increase ladder column ................................................................................................................... 40

© Copyright Reserved Autonics Co., Ltd. vii


Table of Contents

3.9 Decrease ladder column .................................................................................................................. 41


3.10 Edit rung comment ............................................................................................................................ 42
3.11 Find ............................................................................................................................................................42
3.12 Replace .....................................................................................................................................................43
3.13 Find step ..................................................................................................................................................44

4 Tool .............................................................................................................45
4.1 Ladder tool .............................................................................................................................................45
4.1.1 Arrow .......................................................................................................... 45
4.1.2 Delete ......................................................................................................... 46
4.1.3 Vertical line ................................................................................................. 47
4.1.4 Horizontal line ............................................................................................. 48
4.1.5 Input instruction .......................................................................................... 49
4.1.6 Output instruction ....................................................................................... 50
4.1.7 Application instructions............................................................................... 52
4.1.8 NOT instruction........................................................................................... 54
4.1.9 Register user defined function ................................................................... 55
4.1.10 User defined function ................................................................................. 56
4.2 Program checking ...............................................................................................................................58
4.2.1 Program optimization ................................................................................. 58
4.2.2 Program checking and options ................................................................... 61

5 View ............................................................................................................63
5.1 Ladder/Mnemonic ...............................................................................................................................63
5.2 Device name ..........................................................................................................................................63
5.3 Variable name .......................................................................................................................................63
5.4 Device name & Variable name ..................................................................................................... 64
5.5 Device name & Comment .............................................................................................................. 64
5.6 Used devices..........................................................................................................................................65
5.7 Decimal/Hexadecimal view ............................................................................................................. 68
5.8 Signed/Unsigned view ...................................................................................................................... 68
5.9 UW (GP device)/Device (LP device) view ................................................................................. 69
5.10 Zoom in/out ..........................................................................................................................................69
5.11 Font settings ..........................................................................................................................................69
5.12 Color settings ........................................................................................................................................70
5.13 Toolbar ......................................................................................................................................................71
5.14 Workspace ..............................................................................................................................................71
5.15 Message box .........................................................................................................................................72

6 Online .........................................................................................................73
6.1 Connecting .............................................................................................................................................73
6.2 Disconnecting .......................................................................................................................................73
6.3 Download ................................................................................................................................................73
6.4 Upload ......................................................................................................................................................74
6.5 Change mode .......................................................................................................................................74
6.6 Start monitoring/Stop monitoring .............................................................................................. 76
6.7 Read information.................................................................................................................................77

viii © Copyright Reserved Autonics Co., Ltd.


Table of Contents

6.8 Change password ............................................................................................................................... 78


6.9 Verify......................................................................................................................................................... 79
6.10 Change present value ....................................................................................................................... 79
6.11 System device....................................................................................................................................... 80
6.12 Delete ....................................................................................................................................................... 81
6.12.1 Data ............................................................................................................ 81
6.12.2 Program/Parameter .................................................................................... 81
6.13 Firmware download ........................................................................................................................... 81
6.14 Communication Options ................................................................................................................. 82
6.14.1 Serial communication ................................................................................. 82
6.14.2 Ethernet communication ............................................................................ 83
6.14.3 USB communication ................................................................................... 83

7 Debug ......................................................................................................... 85
7.1 Run ............................................................................................................................................................ 85
7.2 Stop run .................................................................................................................................................. 85
7.3 Trace ......................................................................................................................................................... 85
7.4 Insert/Remove break point ............................................................................................................ 86
7.5 Stop Debugging .................................................................................................................................. 86
7.6 Debug-step ............................................................................................................................................ 86
7.7 Debug-line ............................................................................................................................................. 87
7.8 Debug-Scan ........................................................................................................................................... 87
7.9 Debug-1 scan ....................................................................................................................................... 87
7.10 Step in ...................................................................................................................................................... 88
7.11 Step out .................................................................................................................................................. 89
7.12 Debug-bit ............................................................................................................................................... 90
7.13 Debug-word .......................................................................................................................................... 91
7.14 Forced I/O settings ............................................................................................................................ 92

8 Window ...................................................................................................... 93
8.1 Cascade ................................................................................................................................................... 93
8.2 Horizontal tile ....................................................................................................................................... 93
8.3 Vertical tile ............................................................................................................................................. 94
8.4 Arrange icon ......................................................................................................................................... 95
8.5 External program connection ....................................................................................................... 96

9 Workspace ................................................................................................. 97
9.1 Ladder/Mnemonic program .......................................................................................................... 97
9.2 Variable/Comment ............................................................................................................................. 98
9.3 Monitoring ............................................................................................................................................. 99
9.4 Parameter .............................................................................................................................................100
9.4.1 Common ................................................................................................... 100
9.4.2 Extension.................................................................................................. 102
9.4.3 Motion ........................................................................................................ 111
9.4.4 High-speed Counter ................................................................................. 173

© Copyright Reserved Autonics Co., Ltd. ix


Table of Contents

x © Copyright Reserved Autonics Co., Ltd.


1 Overview

1 Overview

1.1 Feature of atLogic


atLogic is the exculsive software to write program and debug for LP series. Features and
advantages of atLogic are as below.

 Supports multi project


Able to open up to 5 projects at the same time and write or edit programs.
 Convenient program edit
 Able to edit by cell unit
 Able to edit with multi window
 Support several view functions such as viewing device name, variable name, or device
name & comment, etc. to edit program easily.
 Able to edit ladder program and mnemonic program at the same time.
 Several monitor function
Support several monitor function such as monitoring variable, device, system, or time chart,
etc.
 Convenient user interface
Easy adaptation for atLogic by same basic function of Microsoft window.
 Various message window
Supports various message window for edit or check program easily.
 Real time switching ladder and mnemonic program
Switching ladder or mnemonic program in real time and it is available to write or edit at two
editors simultaneously.

© Copyright Reserved Autonics Co., Ltd. 11


1 Overview

1.2 System requirements


Operating system: Windows 7/8.1/10
Item Minimum specifications Recommended specification
CPU Pentium 4 or above Pentium Dual Core
Memory 512 MB 1GB
Hard disk 1 GB (Free space) 5GB (Free space)
Resolution 1024 768 1280 1024

Communication port: RS232, Serial, USB, Ethernet

1.3 Installation of atLogic


1st For installing atLogic, visit our website (www.autonics.com) and download atLogic
program.
2nd When run downloaded file, the installation start guide screen displays. Click ‘Next’ to
continue installation, or ‘Cancel’ to discontinue installation.
3rd Clicking ‘Next’, the license agreement displays.
Please check whole part of license agreement article by scrolling mouse, clicking
downward or press “Page Down (PgDn)” key.
Read the articles thoroughly before click [I Agree] button.
4th Clicking [I Agree], the selecting the atLogic installation location screen appears. To
change the installation location, click 'Browse' and specify the location to change. If
the change is not required, click 'Install'.
5th The installation progress will be displayed as soon as the installation starts by
clicking ‘Install’. Please wait for the installation to complete.
6th When the installation process is completed, the installation completion screen
appears. After installation is completed, click 'Finish' to run atLogic. If you do not
want atLogic to run, uncheck 'Rune atLogic (R)' and click 'Finish'.

12 © Copyright Reserved Autonics Co., Ltd.


1 Overview

1.4 atLogic Screen Layout


atLogic consists of menu, toolbar, workspace, program, parameter, variable/comment,
monitoring edit windows, message, and status bar.

No. Name Description


① Title bar Display atLogic version and the activated project title.

② Menu Menu for all atLogic functions by each item.

③ Project tool Tool for project menu

④ Ladder tool Tool for ladder program

⑤ Edit tool Tool for editing such as cut, copy or paste

⑥ Online tool Tool for communication between atLogic and LP

⑦ View tool Tool for viewing the desired information in atLogic


Tool for debugging the program after connecting atLogic and
⑧ Debug tool
LP
External program
⑨ Execute external program directly in atLogic
connection

⑩ Work space Display the project structure and the activated project
Program, parameter,
Able to edit the program (ladder/mnemonic) of activated
variable/comment,
⑪ project, the setting of parameter, variable/comment, and
monitoring edit
check monitoring.
window

⑫ Message Display messages during operating project


Display LP operation status, edit mode status, NumLock key
⑬ Status bar
status

© Copyright Reserved Autonics Co., Ltd. 13


1 Overview

1.4.1 Menu
1.4.1.1 Project
Project menu is for overall project management.

Menu Function Hot key


New Project Creates a new project. Ctrl + N
Open Project Opens an existing project. Ctrl + O
Open from PLC Creates a new project by uploading a project stored in LP. -
Save Project Saves a project. Ctrl + S
Save Project As Saves a project as a different name. -
Close Project Closes the project. -
Creates a new project while the current project remains
open for editing.
Load Project -
Loads project with ‘New Project’, ‘Saved Project’ or ’Open
from PLC’ menu
Change PLC Type Changes LP type of the project open for editing. -
Prints the contents of the project you are currently
Print Project Ctrl + P
working on.
Previews the to be printed contents of the project before
Preview -
printing
Printer Settings Configures the printer before printing the project. -
Recent Projects Displays up to 4 most recently worked on project names. -
Exit Exits atLogic -

14 © Copyright Reserved Autonics Co., Ltd.


1 Overview

1.4.1.2 Edit
Edit menu is for program editing such as cut, copy, and paste.

Menu Function Hot key


Cancels last edited contents and reverts to the Ctrl + Z
Undo
previous state. Alt + Backspace
Ctrl + X
Cut Cuts selected content and pastes it to the clipboard.
Shift + DEL
Ctrl + Insert
Copy Copies selected content to the clipboard.
Ctrl + C
Pastes content from the clipboard and places it on the Shift + Insert
Paste ladder/mnemonic editor window (Enables this function
only in atLogic) Ctrl + V
Insert Mode
Select insert or edit mode when writing the project Insert
/Edit Mode
Insert Line Inserts a new line into present location. Ctrl + L
Delete Line Deletes the present line. Ctrl + D
Increase
Increases the number of columns by 2. Alt + +
Ladder Column
Decrease
Decreases the number of columns by 2. Alt + -
Ladder Column
Edit Rung Edits rung comments at the rung of the present
Ctrl + E
Comment position.
Finds a device or a string in the project and moves it
Find Ctrl + F
to the applicable location.
Finds a device or a string and changes it with the
Replace Ctrl + H
desired device or string.
Find Step Moves to a desired step. Ctrl + G

© Copyright Reserved Autonics Co., Ltd. 15


1 Overview

1.4.1.3 Tool
Tool menus are divided into the ladder tools and program checkup menus.

Ladder tool menu is for writing ladder program.


Menu Function Hot key
Arrow Selects ladder objects. ESC
Delete Erases the selected ladder cell. Shift + E
Vertical Line Enters a vertical line into the ladder cell. F6
Horizontal Line Enters a horizontal line into the ladder cell. F5
Normally Open
Enters a normal open contact into the ladder cell. F3
Contact
Normally Closed
Enters a normal close contact into the ladder cell. F4
Contact
Rising Input Contact Enters a rising input contact point into the ladder cell. Shift + F1
Falling Input Contact Enters a falling input contact point into the ladder cell. Shift + F2
Output Instruction Enters an output instruction into the ladder cell. F9
Rising Output Contact Enters a rising output coil into the ladder cell. Shift + F6
Falling Output Contact Enters a falling output coil into the ladder cell. Shift + F5
SET Enters a SET instruction into the ladder cell. Shift + F3
RESET Enters a RESET instruction into the ladder cell. Shift + F4
Application Instruction Enters an application instruction into the ladder cell. F10
NOT Instruction Enters a NOT instruction into the ladder cell. Shift + F9

Register User Defined Registers the block designated rung as a user defined Shift +
Function function F10
Shift +
User Defined Function Uses the registered user defined function
F11
Program Checking menu has submenus for program optimization and checking.

16 © Copyright Reserved Autonics Co., Ltd.


1 Overview

Menu Function Hot key


Program Optimization Optimizes the program. -
Performs program checking. The result is shown
Program Checking -
in a message window.
Select processing dual coil as error or not during
Program Checking Options -
program checking

1.4.1.4 View
View menu has the functions to be set by users, in order to view information on atLogic
screen.

Menu Function Hot key


Ladder/Mnemonic Exchanges ladder or mnemonic window -
Device Name Shows device name on the program window. -
Variable Name Shows variable name on the program window -
Device name & Variable Shows device name and variable name together
-
name on the program window.
Shows device name and description together on
Device name & Comment -
the program window.
Used Devices Shows numbers as decimal numbers. -
Decimal View Shows numbers as hexadecimal numbers. -
Hexadecimal View Shows decimal numbers as signed numbers. -
Signed View Shows decimal numbers as unsigned numbers. -

© Copyright Reserved Autonics Co., Ltd. 17


1 Overview

Menu Function Hot key


Shows devices used in the program as GP (UW)
Unsigned View -
devices.
UW (GP device) View Shows devices used in the program as LP devices. -
Device (LP device) View Increases or decreases the screen size. -
Zoom In/Out Shows device name on the program window. -
Font Settings Sets the font of program -
Color Settings Sets the color for ladder editor. -
Toolbar Shows toolbar -
Workspace Shows workspace. -
Message Box Shows message box. -

1.4.1.5 Online
Online menu contains functions related to communications between atLogic and LP.

Menu Function Hot key


Connecting Attempts to connect between atLogic and LP. F11
Disconnecting Ends the connection between atLogic and LP. F12
Downloads programs and parameters written in atLogic to
Download -
LP system.
Upload Uploads programs and parameters stored in LP to atLogic. -
Change Mode Changes the mode of LP system. -
Start Monitoring Monitors LP system from atLogic. Ctrl + F1
Stop Monitoring Stops LP system monitoring from atLogic. Ctrl + F2
Read Information Checks information about LP system. -
Change Changes password of the LP system. Default is not set. If
-
Password you lost the password, notify Autonics of the password.
Verifies whether the contents written in atLogic match the
Verify -
ones in LP or not.
Change Present
Changes present values of LP system devices. Ctrl + I
value

18 © Copyright Reserved Autonics Co., Ltd.


1 Overview

Menu Function Hot key


System Device Monitors LP system devices in batches. -
Delete Erases data on LP system. -
Firmware Download firmware to LP system by atLogic. (Only for LP-
-
Download S044 series.)
Communication
Changes communication setting of atLogic -
Options

1.4.1.6 Debug
Debug menu are functions for program debugging after editor and LP communication is
connected.

Menu Function Hot key


Run Runs the program in debug mode. Ctrl + F5
Stop Run Stops running the program in debug mode. Ctrl + Shift + F5
Trace Debugs the program on an instruction basis. Ctrl + F10
Insert/Remove
Inserts or removes break at the relevant points. Ctrl + F9
Break Point
Stop
Stops the debugging. -
Debugging
Debug-Step Debugs up to a specified step. -
Debug-Line Debugs as specified lines. -
Debug-Scan Debugs as specified scan chains. -
Debug-1 scan Debugs only 1 scan. -
Moves debug point into sub-routines or user defined
Step In Ctrl + F11
functions.
Moves debug point from the present position to the
Step Out Ctrl + Shift + F11
main program.
Debugs until a specified bit has reached the set
Debug-Bit -
value.
Debugs until a specified word has reached the set
Debug-Word -
value.
Forced I/O Forces present value setting of input/output device
-
Settings of LP system.

© Copyright Reserved Autonics Co., Ltd. 19


1 Overview

1.4.1.7 Window
Window menu are functions for aligning the program window and monitoring window in the
program, and for connecting external programs.

Menu Function Hot key


Cascade Arranges opened windows in the program in a tiled view. -
Horizontal Tile Arranges opened windows in the program in horizontal boards. -
Vertical Tile Arranges opened windows in the program in vertical boards. -
Arrange Icon Aligns minimized open windows in the program. -
External
Program Registers external programs in order to run them in atLogic. -
Connection

1.4.1.8 Help
Help menu contains for atLogic’s information.

20 © Copyright Reserved Autonics Co., Ltd.


1 Overview

1.4.2 Toolbar
Users can arrange the icons for their own convenient.

Toolbar Icon
Project tool

Ladder tool

Online tool

Edit tool

View tool

Debug tool

External program
connection

© Copyright Reserved Autonics Co., Ltd. 21


1 Overview

1.4.3 Work space


Displays project structure and currently active projects.

1.4.4 Message box


Displays message to display during program operation.

22 © Copyright Reserved Autonics Co., Ltd.


1 Overview

1.4.5 Status bar

Status bar Description


Displays system operation status while communications with the
①LP operation status system are connected. The system operation status could be one of
RUN, STOP, PAUSE, DEBUG, and H/W STOP.

②Edit mode of
Indicates the edit mode of the ladder editor or mnemonic editor. Edit
ladder/mnemonic mode is indicated as one of Edit or OVR.
editor

③NumLock key status Displays the status of NumLock key on the number pad.

© Copyright Reserved Autonics Co., Ltd. 23


1 Overview

24 © Copyright Reserved Autonics Co., Ltd.


2 Project

2 Project

2.1 New project


Creates a new project.
Select [Project]-[New Project] of menu, and ‘Project Information’ dialog box appears.

Project information Description


①PLC series Select the series of the device by pull-down menu.

②PLC type Select the type of the series by pull-down menu.

③Ladder/ Mnemonic Select a programming language for the new project.

④Written Date Enter the date created. The default is set to today's date.

⑤Title Enter the title.

⑥Company Enter the company name.

⑦Writer Enter the writer

⑧Comment Enter a brief project comment.

⑨OK Create a new project

⑩Cancel Cancel creating a new project.

④ to ⑧ are not required fields and do not affect project creation.

© Copyright Reserved Autonics Co., Ltd. 25


2 Project

2.2 Open project


Opens a saved project. Select [Project]-[Open Project] of menu and ‘Open’ dialog box appears.
Select atLogic’s the project (extension: *.ssp) file and click ‘Open’. The project file opens in
atLogic.

2.3 Open from PLC


This feature closes all open projects and performs connection and upload consecutively.
Therefore, communication with the system should not be connected to enable the menu.
It loads the project which is from LP and creates the new project. Select [Project]-[Open from
PLC].
When the connection fails, it shows a message of failure and stops. If this is the case, check the
communication option in [Online]-[Communication Option] of menu.

To read the contents of LP into currently open project, select [Online]-[Upload] of menu.

2.4 Save project


Saves the edited project.
Select [Project]-[Save Project] of menu. If the project is already saved, it is saved in the present
project file which has same file name.
If the project is saved for the first time, ‘Save As’ dialog box appears.
Specify the path, enter the file name, and click ‘Save’ to save the current project.

If the project is a newly created one, or there are changes to the project since it saved last time,
the project name in the workspace displays with * at the end as shown inside a red circle in the
image below.

26 © Copyright Reserved Autonics Co., Ltd.


2 Project

2.5 Save Project As


Saves creating or created project as a different name.
Select [Project]-[Save Project As] of menu and ‘Save As’ dialog box appears.
Specify the path enter the file name and click ‘Save’ and the current project is saved. The file
extension is ‘*.ssp’.

2.6 Close project


Closes an activated project.
Select [Project]-[Close Project] of menu and it executes as followings.

 If the project is a newly created one or an existing project with changes, it confirms saving
or not and then closes the project.
 If the project is not changed since it opened, it closes the project without saving.

2.7 Load project


This function is used to open an additional project while one or more projects are open.
Therefore, this menu is activated only when more than one project is open.

2.7.1 New project


Adds a new project to editor.
Select [Project]-[Load Project]-[New Project] of menu and ‘Project Information’ dialog box
appears.

Project information Description


①PLC series Select the series of the device by pull-down menu.

②PLC type Select the type of the series by pull-down menu.

③Ladder/ Mnemonic Select a programming language for the new project.

④Written Date Enter the date created. The default is set to today's date.

⑤Title Enter the title.

© Copyright Reserved Autonics Co., Ltd. 27


2 Project

Project information Description


⑥Company Enter the company name.

⑦Writer Enter the writer

⑧Comment Enter a brief project comment.

⑨OK Create a new project

⑩Cancel Cancel creating a new project.

④ to ⑧ are not required fields and do not affect project creation.


After the project is added, the following message appears to activate this project.
Click ‘Yes’ to activate the added project. Click ‘No’ or ‘Cancel’ and the added project is not
activated and this project is displayed in workspace.

2.7.2 Saved project


Loads saved project and adds the project in atLogic.
Select [Project]-[Load Project]-[Saved Project] of menu and ‘Open’ dialog box appears.
Select atLogic’s the project (extension: *.ssp) file and click ‘Open’ and the selected project is
added in workspace. After adding the project, the program confirms whether to activate the
added project or not.

28 © Copyright Reserved Autonics Co., Ltd.


2 Project

2.7.3 Open from PLC


This is a feature that performs connection, upload and adds project consecutively. Therefore,
this menu is enabled only when the program is not connected to the system.
Open the project stored in LP and add it in atLogic. Select [Project]-[Load Project]-[Open from
PLC] of menu.
If the connection between the atLogic and LP is available, [Open from PLC] menu works and
adds the uploaded project to workspace.
If an uploaded project and an existing project have the same project ID, a message appears and
asks the user whether to apply the uploaded project to the project with the same ID, or to add as
a new project.
Click ‘Yes’ to apply the uploaded project information to the project with the same ID. Click ‘No’
and the uploaded project is added as a new project. Click ‘Cancel’ and it stops upload operation.
When the project is added, the program confirms whether to activate the added project or not.

2.7.4 Change PLC Type


Select [Project]-[Change PLC Type] of menu and ‘Change PLC type’ dialog box appears.
Select the ‘PLC type’ to change by pull-down menu and it changes the appropriate device and
instructions for the changed PLC.
If the devices and instructions are not compatible with the changed model, places for devices or
instructions are replaced with”?”.
In case of color type PLC program which supports motion command, when change to the mono
type program, the error occurs.

2.8 Print Project


Print the program.
It is allowed to select printing either parts or the whole of the program that is currently displayed.
When printing the parts of the program, specifying the range of steps to print is allowed.
The contents of print preview screen are printed.

2.9 Preview
Show contents to be printed in currently activated windows, such as [ladder editor, mnemonic
editor, parameter, variable/comment]. This is irrelevant to currently active projects.
Select [Project]-[Preview] of menu after activating the to be printed edit window, ‘Preview Print’
dialog box appears.
Select a program range to preview.

 Preview whole program: Previews whole program steps.


 Preview parts: Previews from the start step to end step of the program.

© Copyright Reserved Autonics Co., Ltd. 29


2 Project

The project registered informations of title, company, writer and written date will be printed in the
bottom of the page on the preview screen.

(1) Preview for program (ladder editor)

30 © Copyright Reserved Autonics Co., Ltd.


2 Project

(2) Preview for program (mnemonic editor)

© Copyright Reserved Autonics Co., Ltd. 31


2 Project

(3) Preview for parameter

32 © Copyright Reserved Autonics Co., Ltd.


2 Project

(4) Preview for variable/comment

© Copyright Reserved Autonics Co., Ltd. 33


2 Project

2.10 Printer settings


Configure the printer to be used.

2.11 Exit
Exit atLogic.
If there is any unsaved project, the dialog box appears to check saving the project.
Click ‘Yes’ and it saves and exits atLogic.

34 © Copyright Reserved Autonics Co., Ltd.


3 Edit

3 Edit

3.1 Undo
Select [Edit]-[Undo] of menu or press Ctrl+Z keybord and the most recent operation is cancelled.
User is able to designate the numbers of undo at ‘The numbers of buffer to undo’ in ‘Project
Registered Information’ in workspace. Click the project menu with right mouse button in
workspace and the following pop-up menu appears.

Select [Project Registered Information] of pop-up menu, ‘Register Information’ dialog box
appears.
Register information Description
①PLC series / PLC type Show LP series and type of present project.

②Written date / Title /


Enter the additional information of the project.
Company / Writer / Comment

③Save intervals for Designate the saving interval of temporary files. If this value is
temporary file set to 0, temporary files are not saved.

④The numbers of buffer to


Designate the number of undo. (Setting range: 1 to 99)
undo

© Copyright Reserved Autonics Co., Ltd. 35


3 Edit

3.2 Cut
Select the to be cut area and select [Edit]-[Cut] of menu or press Ctrl+X keyboard and the
selected area is cut and saved in the clipboard.
The following is the example of cut instruction in ladder editor.

 Before cut
Select a block to cut a certain area. You can select a cell instead of a block.

 After cut
After cut instruction, the selected area disappears from the screen. It is copied to the
clipboard.

 After paste
The content copied to the clipboard is pasted to a selected cell.
Select [Edit]-[Paste] of menu or press Ctrl+V keyboard.

36 © Copyright Reserved Autonics Co., Ltd.


3 Edit

3.3 Copy
Select the to be copied area and select [Edit]-[Copy] of menu or press Ctrl+C keyboard and the
selected area is copied in the clipboard.
The following is the example of copy instruction in ladder editor.

 Copy
Select a block to copy a certain area. The screen does not show any change.

 Paste
The content copied is pasted to a selected cell.
Select [Edit]-[Paste] of menu or press Ctrl+V keyboard.

3.4 Paste
Select the desired area to be pasted and select [Edit]-[Paste] of menu or press Ctrl+V keyboard
and [Cut] or [Copy] area is pasted to the selected area or the designated part.

3.5 Insert mode/Edit mode


Whenever selecting [Edit]-[Insert Mode], [Insert Mode] or [Edit Mode] is set alternatively for
ladder editor.

Insert Program entry pushes out the cell or line that is on the cursor position. In insert
mode mode, the cursor changes to a green dotted line.
Program entry deletes and replaces the cell or line that is on the cursor position.
Edit mode
In insert mode, the cursor changes to a green line.

© Copyright Reserved Autonics Co., Ltd. 37


3 Edit

3.6 Insert line


Insert a new line into the present cursor location.
Move the cursor to the position you want to add a line, and select [Edit]-[Insert Line] or press
Ctrl+L keyboard. A new line is added to the cursor position.
The following is the example of insert line instruction in ladder editor.
In case of ladder editor, a line cannot be inserted if there is a instruction that occupies more than
two lines at the cursor position. If the horizontal line is inserted in a cell divided by vertical lines,
vertical columns are automatically created so that it conforms to the upper and lower lines.

 Before insert

 After insert

 In case of unable to insert


If there is an existing instruction across two lines as the following figure, a new line cannot
be inserted to the line where the cursor is placed.

38 © Copyright Reserved Autonics Co., Ltd.


3 Edit

3.7 Delete line


Delete the line or block where the cursor is placed.
Block the area or place the cursor on the line where you want to delete and select [Edit]-[Delete
Line] of menu or press Ctrl+D keyboard. It deletes the desired line.
The following is the example of delete line instruction in ladder editor.

 Before delete

 After delete

 In case of unable to delete


If there is an existing instruction across two lines as the following figure, the line where the
cursor is placed cannot be deleted.

© Copyright Reserved Autonics Co., Ltd. 39


3 Edit

3.8 Increase ladder column


This function increases the number of columns displayed on the ladder editor.
Select [Edit]-[Increase Ladder Column] of menu or press Alt + '+' keyboard and present number
of columns + 2 columns is displayed. Maximum number of columns allowed to increase to is 32.
Output instruction is displayed on the right side as the number of increased columns.

 Before increase ladder column

 After increase ladder column

If a ladder has created a wider than indicated number of columns, and an arrow appears as a
result, increasing the number of columns makes the arrow disappear and a program can be
shown in a line.

40 © Copyright Reserved Autonics Co., Ltd.


3 Edit

3.9 Decrease ladder column


This function decreases the number of columns that are displayed on the ladder editor.
Select [Edit]-[Decrease Ladder Column] of menu or press Alt + '-' keyboard. Present number of
columns minus 2 columns is displayed. Minimum number of columns allowed to keep is 8.
Output instruction is displayed on the right side as the number of decreased columns.

 Before decrease ladder column

 After decrease ladder column

If the input instruction overlaps the output instruction that displays the decreased number of
colums (present number - 2), an arrow appears on the last column of the input instruction line
and also on the first column of the next line. Output instruction is displayed on the last column of
the next line.

© Copyright Reserved Autonics Co., Ltd. 41


3 Edit

3.10 Edit rung comment


Edit the comment of the rung where the cursor is placed.
Select [Edit]-[Edit Rung Comment] of menu or double-click the desired line to edit the rung
comment. Rung comment edit area appears and able to edit the rung comment. Press Ctrl + E
keyboard and it opeates as same.
The following is the example of edit rung comment instruction in ladder editor.

Maximum 127 byte characters can be entered. Press Ctrl+Enter keyboard in rung comment edit
area and it is used as a forced line break.

3.11 Find
Finds a string or text in the program.
Select [Edit]-[Find] of menu, or press Ctrl + F keyboard and ‘Find’ dialog box appears.
Find Description
①Find String Enter the text to find.
Select the direction to find, either forward or backward from the present
②Forward/ Backward
cursor position.
Select the target to find. Able to select one of options such as
③Options
instruction, constant, bit device, comment, or word device.

④Find Next Finds the next for the nearest from the present cursor in find direction.

⑤Close Finishes find and closes ‘Find’ dialog box.

If the text is not found or the search reaches the last step, the dialog box appears to display
‘Finding string has not found any more’ message.

42 © Copyright Reserved Autonics Co., Ltd.


3 Edit

The following is the example of find instruction in ladder editor.


If the text is found, the cursor is placed on the cell where the text is included as below.

3.12 Replace
Select [Edit]-[Replace] of menu or press Ctrl + H keyboard and ‘Replace’ dialog box appears.
Replace Description
①Find String Enter the text to be found

②Replace with Enter the text to be replaced with ①Find String


Select the range of the text to be replaced.
③Options
You can designate one of bit device, word device, comment, or constant.

④Find Next Find ①Find String for the nearest from the present cursor

⑤Replace Replace the found strings with the replaced strings.

⑥Change All Change all occurrences of the text without confirmation.

⑦Close Stop replacing and close ‘Replace’ dialog box.

If it cannot find any more of the text, the dialog box appears to display ‘The system can not find a
string to be replaced’ message.

© Copyright Reserved Autonics Co., Ltd. 43


3 Edit

3.13 Find step


Moves cursor to the desired step.
Select [Edit]-[Find Step] of menu or press Ctrl + G keyboard, ‘Find Step’ dialog box appears.
Find step Description
①Step number Enter the step number to move.

②Find Cursor moves to the step entered in ①

③Cancel Cancels step finding and closes ‘Find Step’ dialog box.

If you enter the non-existing step, the dialog box appears to display ‘The system could not find
the step you want.’ message.

44 © Copyright Reserved Autonics Co., Ltd.


4 Tool

4 Tool

4.1 Ladder tool

4.1.1 Arrow
Select [Tool]-[Arrow] of menu or press Esc keyboard in ladder editor, you can select an object
and change the cursor position.
You can select a cell or specify a cursor position as the following figure.

© Copyright Reserved Autonics Co., Ltd. 45


4 Tool

4.1.2 Delete
Select the area to be deleted and select [Tool]-[Delete] of menu or press Shift+E keyboard to
delete the object in ladder, mnemonic editor. The following is the example of delete instruction in
ladder editor.
If the one cell of the object occupies more than two cells is deleted, the whole object is deleted.
Deleted the object of ladder or menmonic can be restored by [Edit]-[Undo] of menu.

 Before delete

 After delete
You can check the cell where the cursor is placed is deleted.

46 © Copyright Reserved Autonics Co., Ltd.


4 Tool

4.1.3 Vertical line


Select [Tool]-[Vertical Line] of menu or press F6 keyboard and it draws a vertical line on the right
side of a selected cell in the ladder editor. A vertical line cannot be added on the last column of a
ladder line.

 Before editing vertical line


Select [Tool]-[Vertical Line] of menu or press F6 keyboard.

 Edit vertical line


Place the cursor or mouse pointer in the desired location to edit.

 After editing vertical line


A vertical line is added in the relevant location.

© Copyright Reserved Autonics Co., Ltd. 47


4 Tool

4.1.4 Horizontal line


Select [Tool]-[Horizontal Line] of menu or press F5 keyboard and it draws a horizontal line in the
selected cell in the ladder editor. Horizontal line cannot be added in the last column of a ladder
line.

 Before editing horizontal line


Select [Tool]-[Horizontal Line] of menu or press F5 keyboard.

 Edit horizontal line


Place the cursor or mouse pointer in the desired location to edit.

 After horizontal line


A horizontal line is drawn in the relevant location.

48 © Copyright Reserved Autonics Co., Ltd.


4 Tool

4.1.5 Input instruction


This function entersuts normally open contact, normally closed contact, rising input contact, and
falling input contact instructions.
Input instruction Description
Normally open Contact normally stays in OFF status. When a certain input condition is ON, it
contact also becomes ON.
Normally closed Contact normally stays in ON status. When a certain input condition is
contact satisfied, it also becomes OFF.
Rising input Contact becomes ON when the previous status of the input contact changes
contact from OFF to ON.
Falling input Contact becomes ON when the previous status of the input contact changes
contact from ON to OFF.

An input instruction cannot be located in the last column of the ladder line.
Hot key is as following table.
Input instruction Hot key
Normally open contact F3
Normally closed contact F4
Rising input contact Shift+F1
Falling input contact Shift+F2

All input contacts are entered in the same way. The following is the example of input for normally
open contact instruction in ladder editor.

 Before editing normally open contact


Select [Tool]-[Normally Open Contact] of menu or press F3 keyboard.

 Edit normally open contact


Place the cursor or mouse pointer in the desired location to edit.

© Copyright Reserved Autonics Co., Ltd. 49


4 Tool

 Device input
Press Enter keyboard or click with left mouse button, ‘Device Input’ dialog box appears.
Device input Description
①Device Enter the device of normally open contact

②Variable Enter the variable of the normally open contact

③Comment Enter the comment of the normally open contact

④Not Display Not display any contents in ⑦

⑤Variable/Comment Displays registered variable/comment in ⑦

⑥Flag Displays special device information in ⑦

⑦Variable, Device,
Displays the selected contents from ④ to ⑥
Comment
 After editing normally open contact
After entering the device and additional information, click ‘OK’ or press Enter keyboard.
Normally open contact instruction with specified device is input at the relevant location.

4.1.6 Output instruction


This function enters output instruction, rising output contact, falling output contact, SET, RESET
instructions.

Output instruction Description


Output contact Output contact is for output the operation result to device
When the operation result is output to as device, output turns from OFF to
Rising output contact ON with one scan and at the other scans it turns OFF status as output
contact.

Falling output When the operation result is output to as device, output turns from ON to
contact OFF with one scan and at the other scans it turns OFF status.
Once after SET by SET instruction, this contact maintains SET status even
SET though input condition is OFF. (SET contact by RESET instruction turns
OFF)
RESET instruction turns OFF to the specified contact when input condition
RESET
is ON. (RESET contact turns ON by SET instruction.)

An output instruction can be located only in the last column of the ladder line.
Hot key is as following table.
Output instruction Hot key
Output instruction F9
Rising output contact Shift+F5

50 © Copyright Reserved Autonics Co., Ltd.


4 Tool

Output instruction Hot key


Falling output contact Shift+F6
SET Shift+F3
RESET Shift+F4

The following is the example of input for output instructions.

 Before editing output contact


Select [Tool]-[Output Instruction] of menu or press F9 keyboard.

 Edit output contact


Place the cursor or mouse pointer in the desired location to edit.

 Device input
Press Enter keyboard or click with left mouse button, ‘Device Input’ dialog box appears.
Device input Description
①Device Enter the device of output contact

②Variable Enter the variable of output contact

③Comment Enter the comment of output contact

④Not Display Not display any contents in ⑦

⑤Variable/Comment Displays registered variable/comment in ⑦

⑥Flag Displays special device information in ⑦

⑦Variable, Device, Comment Displays the selected contents from ④ to ⑥

 After editing output contact


After entering the device and additional information, click ‘OK’ or press Enter keyboard.
Output contact instruction with specified device is input at the relevant location.

For further details of each instruction, refer to “LP series instruction manual”. All output contacts
are entered in the same way.

© Copyright Reserved Autonics Co., Ltd. 51


4 Tool

4.1.7 Application instructions


This menu is used to enter application instructions.
Select [Tool]-[Application Instructions] of menu or press F10 keyboard, ‘Edit Ladder(Application
Instructions)’ dialog box appears.
Application Description
instruction
①Application instruction Enter application instruction directly.
Displays available instructions to use for each tab. Double-click the
②Application instruction
instruction in ② and the selected instruction is entered in ①.

③Usable Devices Displays usable devices of operand by the selected instruction.

④OK Application instruction is applied to the ladder editor.

⑤Cancel Cancels application instruction input.

⑥Instruction Help Shows help for the selected instruction.


Registers selected instructions as frequently used instructions.
⑦Register
Registered instructions appear under ‘Register’ tab in ②

⑧Delete Deletes instruction registered to the ‘Register’ tab.

⑨Delete All Deletes all instructions registered to the ‘Register’ tab.

Select the menu and click the cell between the input motion and the output motion in the ladder
editor to input a ladder. Optional input of an application instruction is available.
When a ladder is input, it is always created next to an output motion.

52 © Copyright Reserved Autonics Co., Ltd.


4 Tool

 Before input application instruction

 Input application instruction

 Edit ladder (Application instruction) dialog box

 After input application instruction

© Copyright Reserved Autonics Co., Ltd. 53


4 Tool

4.1.8 NOT instruction


This instruction is for reversing the input so far.
Select [Tool]-[NOT Instruction] of menu or press Shift + F9 keyboard and the cursor displays
with "*" sign. Click the desired cell to input the NOT instruction in ladder editor.

54 © Copyright Reserved Autonics Co., Ltd.


4 Tool

4.1.9 Register user defined function


This function is to register as a user defined function in order to reuse a specified rung.
Designate block of the area you want to register as a user defined function as below.

Select [Tool]-[Register User Defined Function] of menu , press Shift + F10 keyboard or click
register user defined function in toolbar. ‘Register User Defined Function’ dialog box appears.

User defined function Description


①Function Enter the function name.
②Operand information Specify the number of operands to use.
Specify a device of each operand as much as the specified number of
③Operand information
operand. Devices assigned to the block appear in pull-down menu.
④Help Enter the comment about the user defined function to be registered.

After completing above steps, click ‘OK’ and the user defined function is registered. The
registered user defined function is stored in the \LIB folder as function name “function name.lib”
file.

© Copyright Reserved Autonics Co., Ltd. 55


4 Tool

4.1.10 User defined function


Calls a user defined function registered to the user defined function library.
Select [Tool]-[User Defined Function] of menu, press Shift + F11 keyboard or click user defined
function in toolbar. ‘Function List’ dialog box appears.

Function list Description


①Instruction Shows the selected user defined function.

②User defined
Shows a list of user defined functions stored in the specified folder at path.
function list

③Operand Shows the device for the selected user defined function.

④Comment Shows description assigned to the selected user defined function.

After entering user deifned function and operand in ①, click ‘Select’ and the user defined
function is applied in ladder editor.
Click ‘Cancel’ and ‘Function List’ dialog box closes regardless the contents entered.

56 © Copyright Reserved Autonics Co., Ltd.


4 Tool

User defined function call is shown in the “FCALL+instruction+operand” format. The internal
routine of the user defined function is added to the outside of the last END instruction, as shown
in the green box in the image below.

© Copyright Reserved Autonics Co., Ltd. 57


4 Tool

4.2 Program checking

4.2.1 Program optimization


Program optimization has two functions; connect ladder line in ladder editor, and clear NOP in
ladder/mnemonic editor.
When executing program optimization in ladder editor, ‘Program Optimization’ dialog box
appears and you can select ‘Connect Ladder Line’ or ‘Clear NOP’ function.
In menmonic editor, there is only ‘Clear NOP’ function, ‘Program Optimization’ dialog box does
not appear and it executes ‘Clear NOP’ function directly.
Program
Description
optimization
This feature forces connection of input lines of the open (not connected)
①Connect ladder line
ladder. This function does not guarantee validity of the ladder.
Mnemonic program can delete all NOP instructions. There is no change
②Clear NOP
in the ladder shape.

 Before connecting ladder line


Input contact and output contact in the second line are not connected together.

58 © Copyright Reserved Autonics Co., Ltd.


4 Tool

 Connect ladder line


Select [Tool]-[Program Checking]-[Program Optimization] of menu, ‘Program Optimization’
dialog box appears. This dialog box appears only in ladder editor. You can select ‘Connect
Ladder Line’ or ‘Clear NOP’ functions. In this example, select ‘Connect Ladder Line’.

 After connecting ladder line


You can see the input contact and output contact are now connected.

 Before clearing NOP


Clear NOP is able to check in mnemonic editor.

© Copyright Reserved Autonics Co., Ltd. 59


4 Tool

 Clear NOP
With activated ladder editor, select [Tool]-[Program Checking]-[Program Optimization] of
menu and ‘Program Optimization’ dialog box appears. Select ‘Clear NOP’. With only
activated mnemonic editor, select [Tool]- [Program Checking]-[Program Optimization] of
menu and ‘Program Optimization’ dialog box does not appear. It clears “NOP” instructions.

 After clearing NOP


You can see, in the mnemonic editor on right side, that previous NOP instructions are
deleted.

60 © Copyright Reserved Autonics Co., Ltd.


4 Tool

4.2.2 Program checking and options


This function checks to see whether there are program errors or not. Select [Tool]-[Program
Checking]-[Program Checking Options] of menu and ‘Checking Program Options’ dialog box
appears.
When checking ‘Process dual coil as error’, dual coil is processed as error and download is not
available. When non-checking this, it displays warning message for dual coil and download is
available.
Regardless option checking, click ‘OK’ and it checks the followings.

 Check dual coil


 Check program errors
 Check program capacity
 Others

Program checking result is output in message box as followings.

 Example of without errors


“There is no error detected.” message appears.

 Example of errors
Lines and steps with errors are written in the message box.

© Copyright Reserved Autonics Co., Ltd. 61


4 Tool

62 © Copyright Reserved Autonics Co., Ltd.


5 View

5 View

5.1 Ladder/Mnemonic
Whenever this menu is selected and the program editor window is ladder, it converts the to
mnemonic and vice versa.

 Ladder

 Mnemonic

5.2 Device name


Displays the devices used in the program by name.

5.3 Variable name


Displays variable names of the devices used in the program.

Devices with a registered variable name are displayed by the variable name (within blue box in
the above image). Devices without a registered variable name are displayed by device name
(within a green box as in the above image).

© Copyright Reserved Autonics Co., Ltd. 63


5 View

5.4 Device name & Variable name


Displays devices in both device name and variable name.

5.5 Device name & Comment


Displays the device used in the program along with its description.

Device without a registered description is displayed only by device name such as the input
contact in the above image.

64 © Copyright Reserved Autonics Co., Ltd.


5 View

5.6 Used devices


Used devices displays the present usage state of the devices.
Select [View]-[Used Devices] of menu and ‘Status of Used Devices’ dialog box appears. You can
check the information of devices to select a desired device. When using a device more than one
time, used device displays the number of the using devices.
(1) ‘Status of Used Devices’ dialog box layout

Status of used
Description
devices
①Device tab bar Device tab for the using device
Displays whether the device is using or not with color.
 Word/double: Displays using device except bit data
②Present status list
 0 to F bit: display bit using devices
 The number is for the used times of appropriate device.
Displays detailed information of the device by clicking present state
③Detailed using list
list
④Color Classified devices by color

(2) Present status list


Device type Description
Bit Device in UB unit
Byte Device in successive 8 UB unit
Word Device in UW unit
Double word Device in successive 2 UW unit

Sign Description
← Device direction with each bit device when using device over 1 byte

© Copyright Reserved Autonics Co., Ltd. 65


5 View

(3) Detailed using list


Item Description
Device name Displays the using device
Position Coordinates of devices located in ladder cell
I/O Displays the state (input/output) of the device
Type Device type (Bit, Byte, Word, Double Word)
Address Used address of LP system

(4) Color
Color Description
Not using device

Displays using bit type device

Displays using 1byte (8bit) type device

Displays using 2byte (16bit) type device

Displays using 4byte (32bit) type device

(5) To display a device used more than one time


When a device is used at more than one device, present state list displays the number of
the using devices as following. Click the number, and detailed using list displays the device
list information.

66 © Copyright Reserved Autonics Co., Ltd.


5 View

(6) To find device on ladder by detailed using list


You can find position information of device at detailed using list at the device on ladder.

To find the device positioned position (6, 7)

Position (x, y) of detailed using list is matched (line, column) of ladder. (The position of
detailed using list starts from y, x (0, 0).)
Therefore, the device of above figure position (6, 7) is matched the device which is placed at
6th line (y) and 7th column of ladder.

© Copyright Reserved Autonics Co., Ltd. 67


5 View

5.7 Decimal/Hexadecimal view


Sets integers in the program or data values for monitoring as decimal number view or
hexadecimal number view.
These two status are not applied at the same time.
(1) Decimal view

(2) Hexadecimal view

5.8 Signed/Unsigned view


Shows integers in the program or monitoring values as Signed or Unsigned.
These two status are not applied at the same time.
(1) Signed view

When you change to [Singed View], it is changed decimal view and signed view both.
(2) Unsigned view

68 © Copyright Reserved Autonics Co., Ltd.


5 View

5.9 UW (GP device)/Device (LP device) view


Sets view mode of the device as either LP Device View or GP Device View.
(1) UW (GP device) view
It converts a LP device to a device that can be used in GP.

(2) Device (LP device) view


It shows actual device used in LP.

5.10 Zoom in/out


Increases or decreases the ladder editor screen.
The screen zoom range is from max 175% to min 25% increasing by steps of 25%.

5.11 Font settings


Sets text font face used in the program.
Font size setting is interconnected with screen zoom.

© Copyright Reserved Autonics Co., Ltd. 69


5 View

5.12 Color settings


Changes the color of the Ladder Editor. Select an item in the list box to change color. The color
of the selected item is displayed in the preview of ‘Color Settings’ dialog box. Click ‘Apply’ and
ladder editor color is changed.

Color settings description


①Item List of items to be changed color

②Preview Previews the changed color

③Change Color Changes the color of selected items in the list

④Preview Shows the new color in the ladder editor

⑤Initialization Ignores user changed color and initializes the color of the ladder editor

⑥Apply Applies the new color and closes ‘Color Settings’ dialog box.
Cancel the new color, applies the previous color and closes ‘Color Settings’
⑦Cancel
dialog box.

70 © Copyright Reserved Autonics Co., Ltd.


5 View

5.13 Toolbar
Selects whether to display the toolbar or not.
Toolbar Icon
Project tool

Ladder tool

Online tool

Edit tool

View tool

Debug tool

External program
connection

5.14 Workspace
Selects whether to display the work space or not.

© Copyright Reserved Autonics Co., Ltd. 71


5 View

5.15 Message box


Selects whether to display output message window or not.

72 © Copyright Reserved Autonics Co., Ltd.


6 Online

6 Online

6.1 Connecting
Attempts to connect to LP and atLogic with predefined communication option (communication
port, communication speed; BPS). Whether the connection succeeds or fails is notified through
the message window.
You can check the connecting stauts as following toolbar.

 Disconnection status

 Attempting to connect status

 Connected status

6.2 Disconnecting
Disconnects between atLogic and LP.
After disconnected, online toolbar changes as above and online menus are disabled.

 Before disconnecting

 After disconnecting

6.3 Download
Downloads active project programs and parameters to the LP. Download is only available when
status between atLogic and LP is "connected" and there is an active project.
You can choose programs and parameters to download.
When downloading the data, LP operation stops. When finishing downloading, you can set LP
mode as RUN or STOP.

© Copyright Reserved Autonics Co., Ltd. 73


6 Online

Please check the followings before downloading.

 Make sure the PLC type in atLogic and the system's PLC type match before download. The
program does not check PLC type when connecting.
 Automatically performs program error checking.
If there is error after checking, the dialog box appears to display ‘An error has been found in
program checking.’ message.
If there is no error, the download processes will continue.

6.4 Upload
This feature brings programs and parameters from PLC to atLogic.
When connecting stauts atLogic and LP, select [Online]-[Upload] of menu and the following
dialog box appears.
You can choose programs and parameters to upload.

If the uploaded project is the same project you are currently working on in atLogic, the dialog box
appears asking whether to edit the uploaded project in current project. Select ‘Yes (Y)” to
continue editing on current project, or ‘No (N)’ to work on new project.

6.5 Change mode


Changes operation mode of the LP.
There are 5 operation modes of the LP: RUN, STOP, PAUSE, DEBUG, H/W STOP.

 If the LP system mode is set to RUN mode,


It can be changed to STOP or PAUSE mode. If you are in the middle of monitoring, you can
change the mode to DEBUG mode.
 If the LP system mode is set to STOP mode,
It can be changed to RUN mode. If you are in the middle of monitoring, you can change the
mode to DEBUG mode.
 If the LP system mode is set to PAUSE mode,
It can be changed to RUN or STOP. If you are in the middle of monitoring, you can change
the mode to DEBUG mode.
 If the LP system mode is set to DEBUG mode,
It can be changed to RUN mode.
 If the LP system mode is set to H/W STOP mode,
Mode control in atLogic is not available. H/W STOP is a mode where LP system switch is
set to STOP.

74 © Copyright Reserved Autonics Co., Ltd.


6 Online

 RUN: Executes the program downloaded to LP.


 STOP: Stops running program. This mode is enabled when the system mode is RUN.
 PAUSE: Temporarily stops the running program. When this mode is off, the program
continues to run from the point of pause.
 DEBUG: Stops the program and enables debug menus.

Operation mode

 RUN mode
RUN mode repeats the following processes in order. Reads external contact status and
saves it in internal memory; executes user program operations, such as step order or
branch instruction and interrupt, to the END line; sends output device memory values as
external output signals. This sequence is repeated.
 STOP mode
STOP mode stops execution of user program, initializes internal memory data (latch area,
some special devices are excluded) as well as turns all external output signals off to block
external signals from the program.
 PAUSE mode
Pause mode stops only the execution of user program, and keeps internal memories and
external output signals.
 DEBUG mode
DEBUG mode stops execution of user program at 0 step, initializes internal memory data
(latch area, some special devices are excluded) as well as turns all external output signals
off. It is also in a wait state for executing debug instructions.

© Copyright Reserved Autonics Co., Ltd. 75


6 Online

6.6 Start monitoring/Stop monitoring


Monitors to reflect system's operation status to the editor if programs of the active project and
the system are same to applied it on the program.
The operation mode can be changed to DEBUG mode while monitoring. You cannot stop
monitoring in DEBUG mode.
If programs of the active project and the system are not the same, monitored values may be
inaccurate.
Bits or word device values are displayed in program editor while monitoring, as in the following
image.

 Before monitoring

 After monitoring

76 © Copyright Reserved Autonics Co., Ltd.


6 Online

6.7 Read information


Reads and displays the system information of the connected LP system.
Select [Online]-[Read Information] of menu and ‘Read PLC information’ dialog box appears and
reads the following items of PLC.

PLC TYPE→SERIES + MODEL Ex)LP-S070 T9D6

PLC version: Firmware version


Status: PLC mode (RUN, STOP, PAUSE, DEBUG)
Hardware switch status (RUN, STOP)

Item Current scan time

Maximum scan time

Minimum scan time

Average scan time


Slot information

© Copyright Reserved Autonics Co., Ltd. 77


6 Online

6.8 Change password


Sets and edits communication password on LP system.
If the password is set already, it checks the password for upload.
Select [Online]-[Change Password] and ‘Change PLC Password’ dialog box appears.

(1) Delete password


If the password is set, the coded password is shown in ①‘Previous Password’.
Delete the coded password in ① and enter the previous password and click ②‘Delete’. It
deletes the preset password in the LP system.
(2) Change password
① When there is set password,
- Enter the previous password in ①
- Input new password in ‘New Password’ and ‘Verify New Password’.
- Click ‘Change’.
② When the password is deleted,
- Maintains ① with blank.
- Input new password in ‘New Password’ and ‘Verify New Password’.
- Click ‘Change’.
(3) Lost password
If you lost your password, notify Autonics for the coded password in atLogic.

78 © Copyright Reserved Autonics Co., Ltd.


6 Online

6.9 Verify
Compares program and parameter settings of the editor with those of the system, and displays
the result. Verify checking is for program and parameter.
This function is able to execute regardless LP operation modes. If you did not specify the range
of steps to compare, it compares the whole steps.
Select [Online]-[Verify] of menu, and ‘Verification of Program/Parameter configuration’ dialog box
appears.
Select the verified item and area, then click ‘OK’ will compare by reading program and parameter
information from LP system.
Depend on compare result, the dialog box appears to display ‘All programs are consistent.’, ‘The
parameter range is inconsistent’, ‘The program area is inconsistent’ message.

6.10 Change present value


This function forces setting values for internal devices (except input/output devices) while
monitoring.
If a device value is set by changing present value, it is un-set when you change the mode of the
LP system.
Select [Online]-[Change Preset Value] of menu, ‘Change Present value’ dialog box appears and
you can change the present value.
Changing present value is executed regardless of LP operation mode.
Change present value Description
①Type Select the device type to be changed

②Device Enter the device to change present value

③Value Enter the to be changed present value of the device

After entering ① to ③, click ‘Change’ and the entered present value


④Change
is applied to the device.

⑤Close Ignores input value and closes ‘Change Present value’ dialog box.

If you want to change the present value of a specific device in the program, move the cursor to
the relevant device, click with right mouse button and pop-up menu appears. Select [Change
Present Value] of pop-up menu and the device is designated automatically and the appropriated
present value is selected.

© Copyright Reserved Autonics Co., Ltd. 79


6 Online

6.11 System device


Monitors devices of the entire system.

Device monitor Description


①Device Select the device of system to monitor

②Monitoring value Displays monitoring value of the device.


Select view options for displaying monitoring value by pull-down menu.
③View Options
Decimal(Unsigned)/Hexadecimal/Binary/Decimal(Signed)

④Double Word With non-checking this, it displays the value as word unit.
Monitoring Checking this, it displays the value as double word unit.

⑤Start Starts monitoring

⑥Pause Pauses monitoring

⑦Move(decrease) Moves (decrease) the device address.

⑧Move(increase) Moves (increase) the device address.

⑨Exit Finishes device monitoring.

80 © Copyright Reserved Autonics Co., Ltd.


6 Online

6.12 Delete

6.12.1 Data
This function initializes system device. Delete data function is enabled only when LP operation
mode is STOP.
Select a device to delete and click ‘OK’ to delete the device data.
If you check ‘ALL', entire system devices can be selected/deselected. Click ‘OK’ and it deletes
(initializes) the selected devices.

6.12.2 Program/Parameter
Deletes program and parameter information stored in the LP system.
Delete program function is able to delete PLC program, line comment, rung comment, variable,
LABEL, project, and password data.
Default is checked both ‘PLC program’ and ‘Parameter’. You can select each item to delete.
When deleting ‘PLC program’, password is also deleted.

6.13 Firmware download


Firmware file is different by LP model. It is able to read only same set LP type in atLogic.
Firmware download menu is only supported in LP-S044 series.
1st Select [Online]-[Firmware Download] of menu.
2nd When the ‘Firmware download’ dialog box appears, select the items as the table
below.
Firmware download Description
①Version Firmware version to download

②Processing Process time to download

③Path Designate file path to download


3rd Select the firmware file to be downloaded in LP and click ‘Download’,
4th When the ‘System Information’ dialog box appears, compare the current LP
firmware with downloaded firmware.
5th If the downloaded firmware is older than the current LP firmware, the dialog box
appears to aski whether to download. To continue downlod the firmware, click ‘Yes’
and to stop download, click ‘No’ or ‘Cancel’.
6th When the firmware download starts ‘Firmware Download’ dialog box appears and
shows download processing. Do not shut down the program or the LP system
during the firmware download.

In case that LP type is RS-232C A, RS-232C B port, only RS-232C B port is available for
firmware download. In case that LP type with each RS-232C and RS-422 port, only RS-232C
port is available for firmware download.
LP-S070, LP-A070 and LP-A104 Series does not support firmware upgrade by atLogic. Insert
USB memory stick, which contains the frimware file, to USB HOST port of the LP system.
Upgrade the firmware in [Data]-[Firmware upgrade] of LP system menu. For further details, refer
to “LP-A Series user manual, LP-S070 user manual and LP-S070 (V2) user manual”.

© Copyright Reserved Autonics Co., Ltd. 81


6 Online

6.14 Communication Options


This function is enabled only when the system and atLogic are not connected. Designate
communication options for communication with LP.
Select [Online]-[Communication Options] and ‘Communication Options’ dialog box appears.
Options Description
Communication type between LP and atLogic: Select Ethernet, USB, or
①Communication type
Serial.

②Setting items Communication setting items appears by communication type.

Communication type by LP model


Model LP-S044 LP-S070 LP-A070 LP-A104
Type Series Series Series Series

Serial ● ● ● ●

Ethernet - ● ● ●

USB - ● ● ●

6.14.1 Serial communication


Connects LP and atLogic by ‘Com’ port.
Serial Description
Select serial communication port to communicate with LP by pull-down
①Port
menu.(COM1 to COM32)
Select serial communication speed (BPS) to communicate with LP by pull-down
②BPS
menu. (110 bps to 115200 bps)

Except port and bps, the other items are fixed as below.
Item Fixed value
Data 8 bit
Stop bit 1 bit
Parity Even
Flow control XON / XOFF

82 © Copyright Reserved Autonics Co., Ltd.


6 Online

6.14.2 Ethernet communication


Connects LP and atLogic by ‘Ethernet’.
Ethernet Description
①Dest IP Register IP address to actual use
Select IP address of PC LAN card to communicate with LP by pull-down
②Lan Card IP
menu

③IP ADDRESS list Displays IP ADDRESS list of connected LP

④Refresh Refreshes IP ADDRESS list.

It is able to download PLC program only when registered on destination IP. Destination IP
defaulted to 0.0.0.0 is able to enter destination IP directly or select destination IP from IP
ADDRESS list by double clicking.

6.14.3 USB communication


Connects LP and atLogic by ‘USB’.
It is not required additional communication setting.

© Copyright Reserved Autonics Co., Ltd. 83


6 Online

84 © Copyright Reserved Autonics Co., Ltd.


7 Debug

7 Debug

7.1 Run
Switches to debug run mode.
Use this feature when you want to run the program until a certain condition, that is either run up
to bit or run up to word, is satisfied, or you want to run the program to the position where the
break point is set.

7.2 Stop run


Stop while debug is running.
When debug is resumed, it starts from the first step.

7.3 Trace
This is a command that executes debug by a command.
If the program receives a trace command again at the last step, it goes back to the first step and
continues the trace.

In the above example, it starts tracing from ①), executes to the END instruction at ⑨ in order,
and executes ① instruction again.

© Copyright Reserved Autonics Co., Ltd. 85


7 Debug

7.4 Insert/Remove break point


Inserts a break point to stop debugging at the specific step.
When a break point is set, the program stops debugging at the position where it encountered the
break point while it was operating any of debug run, debug-scan, debug-bit and debug-word.
Select [Debug]-[Insert/Remove Break Point] at the specified step, the break point is removed.

When a break point is inserted, green rectangle appears at cursor position as the above image.

7.5 Stop Debugging


Stops debug mode and switches the mode to STOP.

7.6 Debug-step
Makes the debug run execute to the specific step number in debug mode.
Starting step number could be selected in either the first step or the broken step.
Debug-step Description
Specify the step number where to start debugging. In the case of the
①Step no. specified step number being greater than the number of the entire steps, it
executes 1 scan and stops at step 0.
If you choose the first step as the debug starting step, it jumps from the
②From the first step
current step to step 0, and executes to the specified step at ①.
If you choose the stopped step as the debug starting step, it executes from
③From the broken the current step to the specified step at ①. If the specified step is located
step ahead of the stopped step, it executes 1 scan and then executes from the
next scan to the specified step.

86 © Copyright Reserved Autonics Co., Ltd.


7 Debug

7.7 Debug-line
Executes the debug by the line(rung). It executes debugging line by a line in order and then
moves the break point.
In the image below you can check that debug by the line started at step 7, in mnemonic editor,
and the break point moved to step 16. In the mnemonic editor, it executes debugging commands
for a line and then stops.

 Before debug-line

 After debug-line

7.8 Debug-Scan
Executes program in debugging status for the specified number of scans.
Debug-scan Description
①The number of scan Specify the number of scans.

②From the first step Starts debug from the first step.

③From the broken After scanning from the stopped step to the number of scans, it stops
step debug at the stopped step.

7.9 Debug-1 scan


Executes 1 scan at the stopped step and stops at the original step (the stopped step).

© Copyright Reserved Autonics Co., Ltd. 87


7 Debug

7.10 Step in
This traces into the inside of the operating function from the point of user function call or sub-
routine call while debugging.
If the step in is not available at the step on which you tried to step in, it works the same way as a
trace.

 Before step in

 After step in

88 © Copyright Reserved Autonics Co., Ltd.


7 Debug

7.11 Step out


Executes the sub-routine while inside the sub-routine directed by step in instruction, and stops at
the next step from the step where the sub-routine is called.
If the current step is not a sub-routine, it works the same way as a trace.

 Before step out

 After step out

© Copyright Reserved Autonics Co., Ltd. 89


7 Debug

7.12 Debug-bit
Keeps debugging until the device reaches the specified value. Registers the bit device's break
registeration condition.
Registered break registeration condition is deleted when the system operation mode is changed.

Debug-bit Description
①,②Device
Displays registered bit device and break condition.
condition setting

Register new bit device break condition. Click ③ and ‘Register INSERT
BREAK POINT’ dialog box appears.

③Register

①Device name: The bit device on which a break condition is registered.


②The numbers: Number of devices to be consecutively registered from the
device specified in ①. Maximum 32 devices are allowed.
③Condition setting value: Break condition (Off/ On)

④Delete Deletes a selected condition from registered conditions.

⑤Delete All Deletes all registered conditions.

⑥Edit Edits a selected condition from registered conditions.

⑦Refresh Reads registered condition from the system and refreshes that condition.

⑧Apply to PLC Applies registered condition to the LP system.

90 © Copyright Reserved Autonics Co., Ltd.


7 Debug

7.13 Debug-word
Keeps debugging until the word device reaches the specified value.
Registers a break condition of the word device. The registered break registeration condition is
deleted when the system operation mode changes.

Debug-word Description
①Word device Displays registered break condition of the word device by reading registered
break condition information of LP.

Registers a new break condition of the word device. Click ② and ‘Register
INSERT BREAK POINT’ dialog box appears.

③Register

①Device name: The word device on which a word break information is


registered.
②The numbers: Number of devices to be consecutively registered from the
device specified in ①. Maximum 32 devices are allowed.
③Condition setting value: Break value of the device.

④Delete Deletes a selected condition from registered conditions.

⑤Delete All Deletes all registered conditions.

⑥Edit Edits a selected condition from registered conditions.

⑦Refresh Reads registered condition from the system and refreshes that condition.

⑧Apply to PLC Applies registered condition to the LP system.

© Copyright Reserved Autonics Co., Ltd. 91


7 Debug

7.14 Forced I/O settings


This function is for controlling the device signal value for input/output by force. The registered
device information by forced I/O settings is cleared when changinge LP operation mode.
Select [Debug]-[Forced I/O Settings] of menu or click with right mouse button, ‘Forced I/O
Settings’ dialog box appears.

(1) Calls by [Debug]-[Forced I/O Settings] of menu


Forced I/O Description
①I/O setting Displays the registered forced I/O setting value on the list

②Registration Adds new forced I/O

③Delete Deletes the selected I/O from the registered forced I/O list in ①

④Delete All Deletes all I/O from the registered forced I/O list in ①

⑤Change Edits the I/O from the registered forced I/O list in ①

⑥On Turns ON the selected I/O from the registered forced I/O list in ① by force

⑦Off Turns OFF the selected I/O from the registered forced I/O list in ① by force

⑧Free Releases control to the selected I/O from the registered forced I/O list in ①

⑨All On Turns ON all I/O from the registered forced I/O list in ①

⑩All Off Turns OFF all I/O from the registered forced I/O list in ①

⑪All Free Releases control to all I/O from the registered forced I/O list in ①
Reads the registered I/O information from the LP system and refreshes
⑫Refresh
①I/O setting value list

⑬Application Applies the registered I/O information in ① to PLC

⑭Close Closes ‘Forced I/O Setting’ dialog box.

92 © Copyright Reserved Autonics Co., Ltd.


8 Window

8 Window

8.1 Cascade
This cascade option aligns opened windows like the image below.

8.2 Horizontal tile


Select [Window]-[Horizontal Tile] of menu, it aligns opened windows like the image below.

© Copyright Reserved Autonics Co., Ltd. 93


8 Window

8.3 Vertical tile


Select [Window]-[Vertical Tile] of menu, it aligns opened windows like the image below.

94 © Copyright Reserved Autonics Co., Ltd.


8 Window

8.4 Arrange icon


Select [Window]-[Arrange Icon] of menu, minimized icons are aligned as below.

 Before arrange icon

 After arrange icon

© Copyright Reserved Autonics Co., Ltd. 95


8 Window

8.5 External program connection


This feature allows registering of other programs in order to run them in atLogic.

External program
Description
connection
A path to the external program appears. You can directly enter the
①Path external program. Registered external program operates directly when
clicking the icon in toolbar.

②Browse Browses external program to be registered by window explorer.


Registers the external program and closes ‘External Program Connection’
③OK
dialog box.
Cancels the registration and closes ‘External Program Connection’ dialog
④Cancel
box.

96 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

9 Workspace

9.1 Ladder/Mnemonic program


When you select ‘Program’ in workspace, ladder or mnemonic window opens by program type.
[Ladder program window]

[Mnemonic program window]

You can input instruction by presing Enter keyboard or double-clicking in mnemonic editor. After
inputting mnemonic, press Enter keyboard. If mnemonic grammer is correct, input is complete. If
there is error in mnemonic grammer, grammer checking message appears and it returns to edit
window.

© Copyright Reserved Autonics Co., Ltd. 97


9 Workspace

9.2 Variable/Comment
When you select ‘Variable/Comment’ in workspace, the following screen opens.

The window outputs existing variables and descriptions. To enter a new variable, double-click the
edit window or press Enter keyboard and ‘Device’ dialog box appears as below.

 Adding variables
1st Enter the device to register as variable and select ‘BIT’ or ‘WORD’.
2nd Enter variable name and comment of to be registered and click ‘OK’.
When entered variable name and comment are registered, check in
‘Variable/Comment’ edit window.

Variable name consists of English alphabet , number and underbar(_).

98 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

9.3 Monitoring
When you select ‘Monitoring’ in workspace, the following screen opens.

On the monitoring window, devices registered as monitoring devices are displayed. At the time of
monitoring LP in atLogic, you can monitors the present value of the registered deivces.
Double-click the edit window or press Enter keyboard and ‘Register Monitor Device’ dialog box
appears.
Select monitoring device type; bit device, word device, double word device, enter the device
name and click ‘Register’ and it is registered as monitoring device.
If you want to register consecutive devices, enter [Device - Device] (ex: x0-x5) in the Device
Name field. It registers from the first device (x0) to the last device (x5).
If the device you want to register has a registered variable, selecting the variable name
immediately registers the device.
Devices in monitoring window are aligned in ascending order by device name.

© Copyright Reserved Autonics Co., Ltd. 99


9 Workspace

9.4 Parameter
When you select ‘Parameter’ in workspace, you can set the detailed configuraiton for LP.

9.4.1 Common
Sets parameters commonly applied to all LP series models.

Common Description
Designate while debugging, output after completing the scan or real-time
output.
 Output after completing the scan: Outputs the value of the present output
①Output wile device (Y device) after a scan in debug mode is complete.
Debugging
 Real-time Output while debugging: Outputs the value when the value of
the output device is changed in debug mode while debugging,
regardless of the present debugging position.
The filter value of each input port can be specified per port through the filter
②Default Filter function. When you did not individually specify the input port value, the value
Value specified in this item is assigned as a filter value. When ‘0’ is set, it does not
use filter value.
This parameter is used to determine how the extension slot is operated
according to the system's RUN/STOP mode.
③Operating  Operating only in run mode: The extension slot is operated only when LP
Condition for operation mode is RUN.
Extended Module
 Operating in stop mode: The extension slot is operated when LP
operation mode is set to STOP as well as RUN.

④Time Driven A parameter to operate the LP logic program on a fixed cycle execution
Operation time.
Designate interrupt occurring interval of specified timer interrupt.
Interrupt sources in a fixed cycle total 8, and the interrupt interval can be set
in 10 ms increments from 10ms to 655350ms. Interrupt occurs in the interval
⑤Time Interrupt
of the time set and executes interrupt routine.
For further details of interrupt instruction, refer to “atLogic programming
manual” or “LP series instruction manual”.
Indicates the latch range that the LP has by default.
Check ‘Use’ of each device and the device becomes memory protection
⑥Device Latch device and, it maintains the previous value even though power is OFF to
Range Settings※1 ON.
D : 1000 to 9999, M: 1000 to 9999, T: 127 to 255, C: 127 to 255, S: 127 to
255, R: 0 to 3999, L: 500 to 999

100 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

Common Description
Timer device area of the designated range has the appropriate time cycle.
LP series supports 256 timers from 0 to 255.
LP timer is two types; 100ms type, and 10ms type.
Depending on using frequency, 256 timers are divided as two types. First
⑦Timer Range allotted contents of 0 to 127 timers are 100ms type, 128 to 255 timers are
10ms type. You can designate the boundary between 100ms type timer and
Settings 10ms type timer.
Timer type Available range
100ms 0 to 254
10ms 1 to 255

※1. Caution for time driven operation


Check watch dog timer value and designate time driven operation time to shorter than
watchdog timer setting. If you set the time driven operation time is longer than watchdog
timer setting, LP operation stops by watchdog timer execution.
Be sure the scan time of program and set the time driven operation time. If you set the time
driven operation time is shorter than the execution time of actual program, program may
execute unexpected operation.
※2. Caution for latch range setting
 Input/output devices that reference actual input/output port values cannot be set as a
latch range.
 Special devices that have influence to the system cannot be set as a latch range, as
they operate according to their individual functions when LP restarts after stop or
power failure.
 When using latch range, check the remaining battery capacity in [Diagnostics]-[Battery
remaining] of system menu in LP.

© Copyright Reserved Autonics Co., Ltd. 101


9 Workspace

9.4.2 Extension
Sets expansion function that is classified by type within LP series.

The above image shows available slots in LP series.


The default of LP-S044 Series is set asTYPE A, the defalut of LP-S070, LP-A070, LP-A104
Series are set as DEFAULT.
Click ‘Settings’ and ‘I/O Contact Setting’ dialog box appears by depending on the LP series.

102 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

(1) FILTER
This is a function used to set input filter value.
This function set X00000 to X00007 / X00008 to X0000F (LP-S044, LP-S070, LP-A070),
X00000 to X00007 / X00008 to X0000F / X00010 to X00017 / X00017 to X0001F (LP-A104)
filter values respectively. With non-checking ‘Using Filter’, input filter of extension slot is
operated by ‘Default filter value’ in ‘Common’ tab.
With checking ‘Using Internal Device’, the set filter value is saved in the designated inner
device in order. By the logic to change this inner device value in ladder program, you can
control filter value.

With checking using inner device, and setting inner device as M0000,
M0000  filter value of X0000 to X00007
M0001  filter value of X0008 to X0000F are saved.
To control filter value by program with checking using inner device, you should write the program
as following steps.
1st Change M device which is to be inner device as changed filter value. Filter value is
available only 0 to 63(6 bit) value. Please refer to below table of actual filter value by
filter when setting filter value.
Filter Actual filter
time (ms) value
0 0
1 1
2 4
3 6
4 9
5 11
6 14
7 17
8 19
9 22
10 24
15 37
20 52
2nd Give pulse input to special device F00090 to set using an internal device with slot 0
module function. (Then the value of M device used as an internal device is applied
as a filter value.)

© Copyright Reserved Autonics Co., Ltd. 103


9 Workspace

(2) INTERRUPT
This sets an input contact as an external interrupt.
With checking ‘Using Interrupt’ and double-click the type and pull-down menu appears to
select one; No Int., Falling, or Rising. You can designate the output by two X0 and X1, X2
and X3.
Designate the device with checking ‘Using internal device’, the earlier set setting values are
saved in 2 word by 2 bit of the appropriate device in order.

This is a mapping example in which the internal device is set to M0100.

You can control the interrupt values by changing this internal device value in the Ladder program.
The method to use an internal device and control the interrupt value with the program is the
same as the one used for filter value.

104 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

(3) MATRIX
This tab is only for LP-S044 series.
MATRIX tab Setting range Description
①Use 16 Key  Checking: Use Choose whether to use
(MATRIX)  Non-checking: Not use matrix function or not.
 return: X00000 –> X00003: Set X0
to X3 as return input Select matrix return input
②Input Register
 return: X00008 –> X0000B: Set X8 signal.
to XB as return input
 COM: Y00000 –> Y00003: Set Y0
to Y3 as COM output Select matrix COM output
③Output Register
 COM: Y00008 –> Y0000B: Set Y8 signal.
to YB as COM output
Select M device as a
④Device Select M device device to save 16 bit key
input values.

 Check: Applies key input value and Save input register and
⑤Device output register
extended setting information Non-
Extensions※1 information in the
check: Applies only key input value
expansion device.
※1. The contents of a device when checking ‘Device Extensions’
 WDS: word device lead address: The set device in device item in matrix setting.
 WDS[0] to WDS[F]: word device bit
WDS: [If input register setting is X0 to X3, it saves 0. If input register setting is
X8 to XB, it saves 1.]
WDS+1: [If output register setting is Y0 to Y3, it saves 0. If output register
setting is Y8 to YB, it saves 1.]
WDS+2[0]: [ON when pressing no. 0 switch is detected.]
Using device
WDS+2[1]: [ON when pressing no. 1 switch is detected.]
extensions
WDS+2[2]: [ON when pressing no. 2 switch is detected.]
….
WDS+2[E]: [ON when pressing no. E switch is detected.]
WDS+2[F]: [ON when pressing no. F switch is detected.]
WDS[0]: [ON when pressing no. 0 switch is detected.]
WDS[1]: [ON when pressing no. 1 switch is detected.]
Not using WDS[2]: [ON when pressing no. 2 switch is detected.]
device
….
extensions
WDS[E]: [ON when pressing no. E switch is detected.]
WDS[F]: [ON when pressing no. F switch is detected.]

© Copyright Reserved Autonics Co., Ltd. 105


9 Workspace

[Matrix connection diagram]

[Save method of input value]


After setting input register as X0 to X3, output register as Y0 to Y3, and device as M0, wire it
as above connection diagram. This is the operation description.

When press no. 2, no. 8, no, B keys at the same time;

The result of key input is that 2nd, 8th, Bth bit of word device M0 turn ON and M0 value of
word device is changed as 0x0904.

106 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

(4) 7 segment
This tab is only for LP-S044 series.
This tab is for controlling 7 segment.
7 SEGMENT tab Setting range Description
 Checking: Use Choose whether to use
①Using 7-segment the segment feature or
 Non-checking: Not use
not.
 Y00000–Y00003: Set Y0 to Y3 as
latch output Choose whether to use
②Output Register
the segment feature or
(COM)  Y00008–Y0000B: Set Y8 to YB as not.
latch output
 ②Output Register(COM) is set as
Y00000–Y00003, it is set as
③Output Register Y00008–>Y0000F automatically. Select data signal for
(SEG) ②Output Register(COM) is set as segment output.
Y00008–Y0000B, it is set as
Y00000–>Y00007 automatically.
Taking selected M device
as a leading device,
④Device Select M device
select 4-word devices as
segment output devices.
 Check: Applies key input value and Save output register
⑤Device Extensions extended setting information (COM) and output
register (SEG)
※1  Non-check: Applies only key input information in the
value expansion device.
※1. The contents of a device when checking ‘Device Extensions’
 WDS: word device lead address: The set device in device item in 7 segment setting.
WDS: [If output register (COM) setting is Y0 to Y03, it saves 0. If output
register (COM) setting is Y8 to YB, it saves 1.]
WDS+1: [If output register (SEG) setting is Y8 to YF, it saves 0. If output
Using device register (SEG) setting is Y0 to Y7, it saves 1.]
extensions WDS+2: [First segment output data]
WDS+3: [Second segment output data]
WDS+4: [Third segment output data]
WDS+5: [Fourth segment output data]
WDS: [First segment output data]
Not using WDS+1: [Second segment output data]
device
WDS+2: [Third segment output data]
extensions
WDS+3: [Fourth segment output data]

© Copyright Reserved Autonics Co., Ltd. 107


9 Workspace

[Setting example and output timing diagram]


Setting item Setting example
Using 7-segment Check (Using)
Output Register(COM) Y00000 – Y00003

Output Register (SEG) Y00008 –> Y0000F

Device Inputs M0[0x55], M1[0xAA], M2[0xF0], M3[0x0F] as present value

108 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

(5) SIO: synchronized signal output


This tab is only for LP-S044 series.
A synchronized signal output function that outputs data according to a specified timing using
Clock, Data and Latch signal.
SIO tab Setting range Description
 Checking: Use Choose whether to use
①Using SIO
 Non-checking: Not use the SIO feature or not.
 Y00004 – Y00006: Clock[Y4],
Data[Y5], Latch[Y6]
②Output Register Select SIO output signal.
 Y0000C – Y0000E: Clock[YC],
Data[YD], Latch[YE]

③Data Bit※1 4 to 7 bit Selecting data bits

④The Number of
1 to 8 word Select output data.
Data
Select heading address
⑤Device Device lead address
of the data to output.
 Check: Applies key input value and Save information about
⑥Device extended setting information output register, data bits
Extensions※2  Non-check: Applies only key input and amount of data in the
value expansion device.

※1. Output data information range varies according to set data bits.
Data bit Available output data range
4 bit 0x000 to 0x000F
5 bit 0x000 to 0x001F
6 bit 0x000 to 0x003F
7 bit 0x000 to 0x007F
※2. The contents of a device when checking ‘Device Extensions’
 WDS: word device lead address: The set device in device item in SIO setting.
WDS: [If output register setting is Y4, Y5, and Y6, it saves 0. If
output register setting is YC, YD, and YE, it saves 1.]
WDS+1: [Saves the set number of data bits]
Using device WDS+2: [Saves the set number of data]
extensions WDS+3: [1st display data]

WDS+n: [(n-3)th display data]
*n-3: the number of data
WDS: [1st display data]
Not using

device
extensions WDS+n: [(n-3) th display data]
*n : the number of data

© Copyright Reserved Autonics Co., Ltd. 109


9 Workspace

[Setting example and output timing diagram]


Setting item Setting example
Using SIO Check (Using)
Output Register Y00004 – Y00006
Data Bit 4
The Number of Data 3
Device D0

110 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

9.4.3 Motion
9.4.3.1 Motion controller overview
LP-S070, LP-A070 and LP-A104 Series includes motion controller function to drive motor driver.
Motion controller is able to move the object from the present to the precision destination position
at the desired speed with controling servo motor or stepping motor.
Motion controller function is able to control with basic motion operation as below.
Basic motion drive list ( : start instruction, : dwell signal, : complete signal)
Function Operation description Instruction

Drive
MTPDM
type
Position
control

When occurring the rising edge of start instruction, it moves to the desired
Oper
position with set speed. After dwell time, complete signal is ON with one
ation
scan.

Drive
MTVDM
type
Speed
control

When occurring the rising edge of start instruction, it moves with set speed
Oper
and decelerates by decelerate stop instructions and stops. Complete signal
ation
is ON with one scan.

Drive
Line MTIPT
type
interpolati
on drive

Oper By start instruction, it controls two axes linear interpolation from the present
ation position to the target position.

© Copyright Reserved Autonics Co., Ltd. 111


9 Workspace

Basic motion drive list ( : start instruction, : dwell signal, : complete signal)
Function Operation description Instruction

Drive
MTOBC
type
Origin
back

By start instruction, it moves to the returning home direction and detects


Oper
origin point. The type of origin back direction is according to the ‘Common
ation
Configuration’ of ‘MOTION’ tab..

Drive
MTOVP
Position type
override

Oper By position override instruction, it drives with changing from the original
ation target position to the changed position.

Drive
MTOVV
Speed type
override

Oper By speed override instruction, it drives with changing from the present speed
ation to the changed speed.

112 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

The basic motion operations as above are the unit operation, and each unit operation is divided
3 types which are single, continue and sucessive.

 Simple: Basic motion operation type is operating only by start instruction.


 Repeat: The motion operation type is operating repeatedly by the first start instruction.
Because it goes to the next automatically after finishing every operation for one period,
there is dwell time.
 Continuous: As similar as continue type, it has repeated operating by the first starting, but it
goes the next without deceleration time and dwell time. Therefore, it is not able to change
directions.
Each connection is as below.

Position(P) → Position(P) Speed(S) → Position(P)

Position(P) → Speed(S) Speed(S) → Speed(S)

: Start instruction, : Pause operation instruction, : Dwell signal, : Compelete signal


P: Postion Item, S: Speed Item

© Copyright Reserved Autonics Co., Ltd. 113


9 Workspace

9.4.3.2 Motion setting parameter


‘MOTION’ tab in parameter is activated for LP-S070, LP-A070 and LP-A104 series type but it is
not activated in other seires.
You can set basic list for motion controll; (1) Common Configuration, (2) Action List, (3) Pattern
List.

(1) Common configuration


This configuration is basic for using motion, set CH1, CH2 operation.
1) Using internal device
Checking ‘Using Internal Device’, you can directly edit the setting items in LP-S070
system [Parameter]-[Common setting] without atLogic after downloading the program
in LP.
Check ‘Using Internal Device’ and ‘Device’ is activated.
Click ‘Device’ and ‘Select the device’ dialog box appears to designate the inner
device.

114 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

[Device map with checking ‘Using Internal Device’]


With checking ‘Using Internal Device’ and designating the device, the setting values
of common configuration are saved to from the designated device in order. The below
device map is when inner device is set as M100.

© Copyright Reserved Autonics Co., Ltd. 115


9 Workspace

2) Common configuration item


Item Type Description
Whether to use Ch1, Ch2 or not, motion control
or not.
Enable CH BYTE(1Byte)
 TRUE: Using it for I/O motion drive
 FALSE: Using it for I/O
Designate the movement range of the device as
DWORD
S/W upper limit user-defined range by S/W.
(4Byte)
 When using S/W limit, if the present position
is over S/W upper/lower limit, it executes
DWORD emergency stop.
S/W lower limit
(4Byte)
 Set range: -2,147,483,648 to 2,147,483,647
Unsigned Designate start speed.
Start speed(pps) DWORD
(4Byte)  Set range: 100,000 pps

Designate origin point position.


Origin point DWORD(4Byte)
 Set range: -2,147,483,648 to 2,147,483,647
Home search Designate home search direction when using
BYTE(1Byte)
direction H/W origin back. (Forward /Backward)
Acceleration Unsigned
time1(ms) WORD(2Byte) Designate acceleration time.
Acceleration Unsigned  Set range: 0 to 65535ms
time2(ms) WORD(2Byte)  This is acceleration time to be taken from
Acceleration Unsigned stop status (0) to maximum speed
time3(ms) WORD(2Byte) (100,000pps).
Acceleration Unsigned  If you set start speed, this acceleration time
time4(ms) WORD(2Byte) is to be taken time from the set start speed to
Acceleration Unsigned maximum speed (100,000pps).
time5(ms) WORD(2Byte)
Deceleration Unsigned
time1(ms) WORD(2Byte) Designate deceleration time.
Deceleration Unsigned  Set range: 0 to 65535ms
time2(ms) WORD(2Byte)  This is deceleration time to be taken from
Deceleration Unsigned maximum speed (100,000pps) to stop status
time3(ms) WORD(2Byte) (0).
Deceleration Unsigned  If you set start speed, this deceleration time
time4(ms) WORD(2Byte) is to be taken time from maximum speed
Deceleration Unsigned (100,000pps) to the set start speed.
time5(ms) WORD(2Byte)
Unsigned Designate drive speed in jog drive.
Jog speed(pps) DWORD
(4Byte)  Set range: 1 to max. speed (100,000pps)

Jog acceleration Unsigned Designate jog acceleration time.


time(ms) WORD(2Byte)  Set range: 0 to 65535ms
Jog deceleration Unsigned Designate jog deceleration time.
time(ms) WORD(2Byte)  Set range: 0 to 65535ms
Acceleration time Unsigned Designate acceleration time to origin.
to origin(ms) WORD(2Byte)  Set range: 0 to 65535ms
Deceleration time Unsigned Designate deceleration time to origin.
to origin(ms) WORD(2Byte)  Set range: 0 to 65535ms

116 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

Item Type Description


Designate the progress speed to back origin
Home search Unsigned point.
position(pps) DWORD(4Byte)
 Set range: 0 to max. speed (100,000pps)
Whether to use the limit of user-defined drive
Enable S/W limit BYTE(1Byte) range by S/W or not. If it is out of the range, it
executes emergency stop.
Whether to use the limit of user-defined drive
Enable H/W limit BYTE(1Byte) range by H/W or not. If it is out of the range, it
executes emergency stop.
Select origin back method.
 H/W: Designate the origin point with origin
Origin back kind BYTE(1Byte) point signal.
 S/W: Use the user defined origin point on the
program.

© Copyright Reserved Autonics Co., Ltd. 117


9 Workspace

(2) Action list


Designate basic drive of one period.
1) Using internal device
Checking ‘Using Internal Device’, you can directly edit the setting items in LP-S070
system [Parameter]-[Common setting] without atLogic after downloading the program
in LP.
Check ‘Using Internal Device’ and ‘Device’ is activated.

Click ‘Device’ and ‘Select the device’ dialog box appears to designate the inner
device.

[Device map with checking ‘Using Internal Device’]


With checking ‘Using Internal Device’ and designating the device, the setting values
of common configuration are saved to from the designated device in order. The below
device map is when inner device is set as D100.

118 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

2) Action list item


Item Description
Num It is able to set up to 99.
 Position: Drives from present position to the destination position
with the defined speed.
Drive type
 Speed: Drives from present position with the defined speed and
direction.
Coordinate  Absolute: Fixed coordination based on the origin point.
type  Relative: User defined coordination based on the last point.
When drive type is ‘Position’, this item is activated to set destination
position.
Destination  Set range: -2,147,483,648 to 2,147,483,647
position
 When drive type is ‘Position’, it compares present position and
destination position to control direction automatically.
When drive type is ‘Speed’, this item is activated to set drive
Drive direction direction.
 1: Forward, 0: Backward
Designate drive speed. (Unit: pps)
Drive speed
 Max. range: 100,000pps
Designate the user defined acceleration time (1 to 5) in ‘Common
Acceleration Configuration’.
time  Using this, it converts the time to accelerate 100,000pps based
on their speed.
Designate the user defined deceleration time (1 to 5) in ‘Common
Deceleration Configuration’.
time  Using this, it converts the time to decelerate 100,000pps based
on their speed.
Designate dwell time for after completing drive.
Dwell time
 Set range: 0 to 65535ms

© Copyright Reserved Autonics Co., Ltd. 119


9 Workspace

Example of motion action by drive type from action list


① Drive type: Position, Coodination type: Absolute
Drives with drive speed (10000pps) and reaches destination position (50000).
Each item’s setting value is as below. (For position drive, it needs to set drive type,
coordinate type, destination type, drive speed(pps), accel time, decel time and dwell
time(ms) parameters.)

- Drive type: Position drive, when it reaches the destination position, drive is finished.
- Coodination type: Absoulte coordination, when it reaches the destination position,
drive is finished regardless of present position.
- Destination position: 50000, drive is finished at this position.
- Drive speed: 10000pps, drive speed of motor.
- Accel/Decel time: Selected each one from acceleration time 1 to 5 and deceleration
time 1 to 5.
- Dwell time: Stabilization time for next drive after completing motor drive.
The followings are the graph of this example.

② Drive type: Position, Coodination type: Relative


Drives with drive speed (10000pps) and reaches destination position (50000).
Each item’s setting value is as below. (For position drive, it needs to set drive type,
coordinate type, destination type, drive speed(pps), accel time, decel time and dwell
time(ms) parameters.)

- Drive type: Position drive, when it reaches the destination position, drive is finished.
- Coodination type: Relative coordination.
- Destination position: When coordination type is relative, destination position is
movement distance. Therefore, destination position 50000 is same as movement
distance 50000.
- Drive speed: 10000pps, drive speed of motor.
- Accel/Decel time: Selected each one from acceleration time 1 to 5 and deceleration
time 1 to 5.
- Dwell time: Stabilization time for next drive after completing motor drive.
The followings are the graph of this example. (Present position of this example is 1000.)

120 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

③ Drive type: Speed


Thi example is speed drive with the designated speed. Each item’s setting value is as
below. (For speed drive, it needs to set drive type, drive direction, drive speed (pps), accel
time, decel time, and dwell time(ms) parameters).

- Drive type: Speed drive, it drives continuously unitl complete signal occurs.
- Drive speed: 10000pps, drive speed of motor.
- Accel/Decel time: Selected each one from acceleration time 1 to 5 and deceleration
time 1 to 5.
- Dwell time: Stabilization time for next drive after completing motor drive.
- The followings are the graph of this example.

④ To use the saved values of ‘Action List’


‘Action List’ is the setting for motion control. You can actual drive by MTUAI(action list
drive) instruction which designates action number to drive, and by MTIDM (Indirect
designation drive) with the user-defined pattern list.

© Copyright Reserved Autonics Co., Ltd. 121


9 Workspace

(3) Pattern list


This pattern list is able to execute repeated drive and several drives as pattern form by
binding action list.
1) Pattern list item
Item Description
Number It is able to set pattern list number from 1 to 99.
Enters script strings to execute pattern.
Pattern string
It has variable length up to 200 characters (byte).
2) Check pattern string grammar
This function is check whether each pattern string’s grammar is correct or not. If there
is no error, “Pattern string has been made correctly” message appears in message
box. If there is error, this data is not downloaded to LP.

Pattern list (For pattern list structure and writing, refer to ‘9.4.3.3Pattern writing’.)

122 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

9.4.3.3 Pattern writing


LP system saves motor drive information as pattern form and is able to write repeated drive
easily.
(1) Unit action
1) Pattern grammar structure

2) Item descriptions
Item Description
Sequence Designation part for repeat connection information of current
information pattern with continue, repeat, or single.
(Current pattern) Continue: C, Repeat: R, Single: None (omissible)
Action list Designate action list number. (essential)
Signal of the
number of repeat Signal for dividing action list number and the number of repeat.
If there is no number of repeat, please omit this.
“-“

The number of The number of repeat for action list (omissible)


repeat ‘0’ means infinite repeat.
Sequence
Designate connect action for next pattern.
information
If there is no next pattern, it is omissible.
(Next pattern)
Signal for dividing next unit action.
Signal of pattern “,”
If there is no next action, it is omissible.

© Copyright Reserved Autonics Co., Ltd. 123


9 Workspace

[Pattern grammar of unit action]

1st Repeats #5 action list twice with C(continue).


2nd After repeated second #5 action list, connects #2 action list with R(repeat).
3rd Repeats #2 action list three times with single.
To repeat action list with single, there should be start instrucion to executes the
action.
4th After repeated third #2 action list, connects #4 action list with C(continue).
5th Executes #4 action list once and completes this action.

124 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

(2) Group action


1) Pattern grammar structure

2) Item descriptions
Item Description
Designation part for repeat connection information of current
Group sequence pattern
information
Continue: C, Repeat: R, Single: None (Omissible)
When binding several unit actions as one group, this
Start bracket
symbolizes the start of this group.
Unit action list A binding of unit actions
When binding several unit actions as one group, this
End bracket
symbolizes the end of this group.
Signal of the number Signal for dividing unit action or group action number and the
of repeat “-“ number of repeat.
The number of repeat The number of repeat for unit action or group action.
Connection sequence
Designation part for connection information with next items
information

Signal of pattern “,” Signal for dividing next unit action or group action.

© Copyright Reserved Autonics Co., Ltd. 125


9 Workspace

[Pattern grammar of group action]


It is able to drive as unit action by binding other unit actions with bracket.

1st Repeats #2 action list three times with single.


To start or repeat action list with single, there should be start instruction to execute
the action.
2nd After repeated third #2 actoin list, connects #4 action list with R(repeat).
3rd Repeats #4 action list twice with C(continue).
4th 1st to 3rd steps are binded with start bracket “(” and end bracket “)” as a group
action. Repeat this group action 1st to 3rd steps one more with C(continue). (The
number of repeat for group action is set two times.)
5th After the last of group action(repeated second #4 action list), connects #3 action list
with R(repeat).
6th Repeats #3 action list twice with single.
To repeat action list with single, there should be start instruction to executes the
action.

Group pattern grammar does not allow to use double brackets. Therefore, please separate
each bracket pair for group pattern grammar.
(Example) (C(R3-2C,C4-2)-2R)-2C,3-2 → C(R3-2C,c4-2)-2C, C(R3-2C,c4-2)-2C,3-2

126 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

(3) Infinite repeat


The number of repeat “0” means infinite repeat in pattern grammar structure. Action list or
group action which has the number of repeat “0” is repeated infinitely.

[Pattern grammar of group action which has infinite repeat]


C(2-3, 4-0, 5-2)-0R

Above pattern stings has two ‘0’s which means infinite repeat.
1st Repeats #2 action list three times with single.
To start or repeat action list with single, there should be start instruction to execute
the action.
2nd After repeated third #2 action list, connects #4 action list with single and repeats it
infinitely (the number of repeat is 0).
3rd When #4 action list repeats infinitely, it can not execute the next action. To stop
infinete repeat, executes MTSRS instruction. Therefore, #4 action list stops infinete
repeat. It connects #5 action list with single and repeats it twice.
To start or repeat action list with single, there should be start instruction to execute
the action.
4th 1st to 3rd steps are binded with satr bracket “(” and end bracket “)” as a group
action. Connects the group action 1st to 3rd steps with C(continue) and repeats it
infinetly. (The number of repeat group action is “0” which means infinete repeat. )

© Copyright Reserved Autonics Co., Ltd. 127


9 Workspace

There are three instructions to stop infinite repeat.


1) MTSRS(normal stop)
After designating special flag for stop (F401, F403), execute MTSRS (normal stop)
instruction to stop infinite repeat.
With sequence information of when stopping infinite repeat, it connects the next
action pattern.

① ② ③ ④ ⑤ ⑥ ⑦
Pattern
R( 1-4R, 2-2C, 4-2 )-0R, 3-4R, 2-6R
Above pattern list is the example of infinite repeat for ②, ③, ④ group action. To
finish infinite repeat of this pattern list, and execute ⑥ action list, designate F401
special flag and execute MTSRS(normal stop) instruction. If infinite repeat stops at ②,
it connects ⑥ action list with R. If infinite repeat stops at ③, it connects ⑥ action
list with C. Or if infinite repeat stops at ④, it connects ⑥ action list with single.
2) MTSRS(normal stop)
MTSRS (normal stop) without special flag for stop executes pattern stop instruction.
Infinite repeat is also one of pattern. MTSRS (normal stop) instruction is able to stop
as above.
3) MTEMS(emergency stop)
It stops all operating motion instruction and error flag occurs. This is emergency stop
which does not have deceleration and dwell time to stabilize. To re-execute motion
instruction, execute MTEMC (removing error flag) instruction to reset error flag.

128 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

9.4.3.4 Special device and error device

(1) Special device


CH Name Type R/W Function
Using CH1 axis
F100 BIT R  Use: 1
 Disuse: 0
While moving CH1 currently (one of accel, decel,
constant drive)
F101 BIT R
 Moving: 1
 Not moving: 0
Accelerating CH1 axis
F102 BIT R  Accelerating: 1
 Not accelerating: 0
While driving CH1 with set speed(max. speed)
F103 BIT R  Driving with set speed: 1
 Not driving with set speed: 0
Decelerating CH1 axis
F104 BIT R  Decelerating: 1
 Not decelerating: 0
Dwelling CH1
F105 BIT R  Dwelling: 1
 Not dwelling: 0
Completing CH1 drive
F106 BIT R  Completing: 1
CH1  Not completing: 0
Detecting S/W lower limit of CH1 axis
F107 BIT R  Detecting S/W lower limit: 1
 Not detecting S/W lower limit: 0
Detecting S/W upper limit of CH1 axis
F108 BIT R  Detecting S/W upper limit: 1
 Not detecting S/W upper limit: 0
Detecting H/W lower limit of CH1 axis
F109 BIT R  Detecting H/W lower limit: 1
 Not detecting H/W lower limit: 0
Detecting H/W upper limit of CH1
F10A BIT R  Detecting H/W upper limit: 1
 Not detecting H/W upper limit: 0
Designation flag for MTSRS(normal stop) instruction
F400 BIT R/W
(stops action list)
Designation flag for MTSRS(normal stop) instruction
F401 BIT R/W
(stops group list)
F600 DWORD R Motion position (current position)
F620 DWORD R Motion speed (current speed)
F640 WORD R Motion ACT (current action number)
F650 WORD R Motion pattern (current pattern number)
F660 DWORD R Motion base position (current origin point position)

© Copyright Reserved Autonics Co., Ltd. 129


9 Workspace

CH Name Type R/W Function


F680 DWORD R Motion pattern speed (set speed)
Using CH2 axis
F120 BIT R  Use: 1
 Disuse: 0
While moving CH2 currently (one of accel, decel,
constant drive)
F121 BIT R
 Moving: 1
 Not moving: 0
Accelerating CH2 axis
F122 BIT R  Accelerating: 1
 Not accelerating: 0
While driving CH2 with set speed(max. speed)_
F123 BIT R  Driving with set speed: 1
 Not driving with set speed: 0
Decelerating CH2 axis
F124 BIT R  Decelerating: 1
 Not decelerating: 0
Dwelling CH2
F125 BIT R  Dwelling: 1
 Not dwelling: 0
Completing CH2 drive
F126 BIT R  Completing: 1
 Not completing: 0
CH2 Detecting S/W lower limit of CH2
F127 BIT R  Detecting S/W lower limit: 1
 Not detecting S/W lower limit: 0
Detecting S/W upper limit of CH2
F128 BIT R  Detecting S/W upper limit: 1
 Not detecting S/W upper limit: 0
Detecting H/W lower limit of CH2
F129 BIT R  Detecting H/W lower limit: 1
 Not detecting H/W lower limit: 0
Detecting H/W upper limit of CH2
F12A BIT R  Detecting H/W upper limit: 1
 Not detecting H/W upper limit: 0
Designation flag for MTSRS(normal stop) instruction
F402 BIT R/W
(stops action list)
Designation flag for MTSRS(normal stop) instruction
F403 BIT R/W
(stops group list)
F700 DWORD R Motion position (current position)
F720 DWORD R Motion speed (current speed)
F740 WORD R Motion ACT (current action number)
F750 WORD R Motion pattern (current pattern number)
F760 DWORD R Motion base position (current origin point position)
F780 DWORD R Motion pattern speed (set speed)

130 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

CH Name Type R/W Function


CH1 jog forward drive
 ON rising: Accelerates with jog forward, and
F500 BIT R/W drives with constant speed
 OFF falling: Decelerates with jog forward, and
stops
CH1 jog backward drive
 ON rising: Accelerates with jog backward, and
F501 BIT R/W drives with constant speed
 OFF falling: Decelerates with jog backward, and
stops.
Jog
CH2 jog forward drive
 ON rising: Accelerates with jog forward, and
F502 BIT R/W drives with constant speed
 OFF falling: Decelerates with jog forward, and
stops
CH2 jog backward drive
 ON rising: Accelerates with jog backward, and
F503 BIT R/W drives with constant speed
 OFF falling: Decelerates with jog backward, and
stops.

(2) Error device


CH Name Error Function

F110 CH1 error Occurs error to CH1 during motion driving


CH1
Emergency stop Error when executing MTEMS(emergency stop)
F11F
error instruction during motion driving
F130 CH2 error Occurs error to CH2 during motion driving
CH2 Emergency stop Error when executing MTEMS(emergency stop)
F13F
error instruction during motion driving

(3) Special device for error code checking


Device GP_Device Description
F20 UW06420 CH1 error code check
F21 UW06421 CH2 error code check

© Copyright Reserved Autonics Co., Ltd. 131


9 Workspace

(4) Error code


Error Run
Symptom Troubleshooting
code state
When inputting other starting Clear the error by MTMEC(removing error)
1 instruction signal during Run instruction and executes next start
using channel instruction
When giving progress
instruction to other direction Edit the pattern list which has problem.
2 than current progressing Stop Clear the error by MTMEC(removing error)
direction during consecutive instruction and executes motion operation
running ‘C’
When setting position preset Clear the error by MTMEC(removing error)
3 Run
during running instruction
When there is no action list Edit the action list which has problem.
4 to operate during executing Stop Clear the error by MTMEC(removing error)
pattern action instruction
When action list type is
position drive during Check and edit action list and S/W limit
5 executing pattern action and Stop value which have problem. Clear the error
destination position is out of by MTMEC(removing error) instruction
S/W limit range
Clear the error by MTMEC(removing error)
10 Excess high low limit error Stop instruction and escape limit with jog
operation and execute the next
When speed parameter
value is higher than
maximum speed
(100,000PPS) Clear the error by MTMEC(removing error)
20 Stop instruction and check the set parameter
Designated pattern number values
of MTIDM(Indirect
designated drive) instruction
is out of 1 to 99

132 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

(5) I/O device

Input

Input Output Output

LP-A070, LP-S070

 I/O pin arrangement


Input Output

 I/O signal
Input contact
Signal name Description
number
Detect the lower limit of CH1 when there is a signal at
CH1 X0
the input contacts.
Lower limit signal
Detect the lower limit of CH2 when there is a signal at
CH2 X3
the input contacts.
Detect the upper limit of CH1 when there is a signal at
CH1 X1
the input contacts.
Upper limit signal
Detect the upper limit of CH2 when there is a signal at
CH2 X4
the input contacts.
Detect the origin limit of CH1 when there is a signal at
CH1 X2
the input contacts.
Origin limit signal
Detect the origin limit of CH2 when there is a signal at
CH2 X5
the input contacts.
Directional CH1 Y2 Output the directional selection signal of CH1.
selection signal CH2 Y3 Output the directional selection signal of CH2.
CH1 Y0 Output the PWM signal of CH1.
PWM signal
CH2 Y1 Output the PWM signal of CH2.

© Copyright Reserved Autonics Co., Ltd. 133


9 Workspace

 The input contact number uses the same number regardless of the ribbon type and the
terminal type.
 Use the 1Pulse input method. Be careful when connecting the motion controller.
 In case of using motion controller function and high-speed counter function, X0 to X5 are
occupied by the motion controller and cannot be used as the input port of the high-speed
counter.
9.4.3.5 Motion instruction

9.4.3.5.1. MTVDM: speed direct drive instruction


You can designate direct drive data(drive speed, drive direction, etc.) directly and it executes
speed drive.
(1) Instruction

MTVDM S0 S1 S2 S3 S4 S5

(2) Operand
Operand Type Description Available range
S0 WORD CH(axis) to execute instruction CH1 or CH2
S1 BIT Drive direction to decide position Forward(1), backward(0)
S2 DWORD Drive speed to decide position 1 to 100,000pps
S3 WORD Dwell time 0 to 65535ms
Acceleration time 1 to 5 of
S4 WORD Acceleration time
common configuration
Deceleration time 1 to 5 of
S5 WORD Deceleration time
common configuration

Device
Oper
and Inte
X Y M S D T C Z F V L R UW UB
ger
S0 ○ - ○ - ○ - - ○ - - - - ○ - ○
S1 ○ - ○ - - - - ○ - - - - - ○ -
S2 ○ - ○ - ○ - - ○ - - - - ○ - ○
S3 ○ - ○ - ○ - - ○ - - - - ○ - ○
S4 ○ - ○ - ○ - - ○ - - - - ○ - ○
S5 ○ - ○ - ○ - - ○ - - - - ○ - ○

 Be sure that if set drive speed is over than max. speed (100,000pps), it may cause
malfunction.
 Acceleration/Deceleration time is one of Acceleration/Deceleration time 1 to 5 of ‘Common
Configuration’ at [Workspace]-[Parameter]-[MOTION] in atLogic.

134 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

 If set drive speed is lower than start speed, this set drive speed drives constant without
acceleration/deceleration drive.
(3) Ladder and mnemonic
 Ladder

 Mnemonic

Please use the device that matches the size of each operand.
(4) Function
 Executes speed direct drive at rising edge of input condition.
 Drives set speed and direction until executing stop sign.
 This instruction is able to set only drive data items. Basic drive data (start speed,
acceleration time, deceleration time, etc.) is the set value of ‘Common Configuration’ at
[Workspace]-[Parameter]-[MOTION] in atLogic.

[Caution for common configuration]


 To use motion instruction, please designate the appropriate CH whether to use or not.
 Please set acceleration/deceleration time appropriately by drive speed. If you set
acceleration/deceleration time is too short or too long, it may cause malfunction.
 If set start speed is higher than starting frequency of motor, it may cause malfunction.

© Copyright Reserved Autonics Co., Ltd. 135


9 Workspace

(5) Example of usage


“Speed drive with 10000 speed.”
1) ‘MOTION’ tab
Designate ‘Common Configuration’ at [Workspace]-[Parameter]-[MOTION] in atLogic
as below figure.

For further details of each setting value, refer to ‘9.4.3.2 Motion setting parameter’.
This example is set enable CH, s/w upper/lower limit, start speed, origin point, home
search direction, acceleration time, deceleration time, acceleration time to origin,
deceleration time to origin, home search speed, enable S/W limit, enable H/W limit,
and origin back kind.

136 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

2) PLC program

3) Drive description
This example is programmed to speed direct drive by user’s input after origin back.
The device of MTVDM (speed direct drive) is as following.
Device Value Description
M100 1 Using CH
M150 1 Drive direction(0: backward 1: forward)
M200 10000 Drive speed
M250 1000 Dwell time
M300 1 Acceleration time
M350 1 Deceleration time

 Acceleration/Deceleration time is one of Acceleration/Deceleration time 1 to 5 of


‘Common Configuration’ at [Workspace]-[Parameter]-[MOTION] in atLogic. The other
time setting is not supported.
 Basic drive data (start speed, acceleration time, deceleration time, etc.) is the set value
of ‘Common Configuration’ at [Workspace]-[Parameter]-[MOTION] in atLogic.

© Copyright Reserved Autonics Co., Ltd. 137


9 Workspace

1st When rising edge occurs at M0 device, executes MTOBC(origin back) instruction.
MTOBC(origin back) instruction searches origin point by origin back kind of
‘Common Configuration’ (This example is set as H/W.)
2nd When rising edge occurs at M1 device, executes MTVDM (speed direct drive)
instruction.
3rd When executeing MTVDM(speed direct drive) instruction, accelerates up to the set
drive speed during acceleration time and drives constant with the set drive speed.
4th MTVDM(speed direct drive) instruction is speed drive. It drives continuously until
MTSRS(normal stop) instruction occurs.
MTVDM(speed direct drive) instruction is able to stop by MTSRS(normal stop),
MTEMS(emergency stop) instructions.

138 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

9.4.3.5.2. MTPDM: position direct drive instruction


You can designate direct drive data(drive speed, drive direction, etc) directly and it executes
position drive.
(1) Instruction

MTPDM S0 S1 S2 S3 S4 S5

(2) Operand
Operand Type Description Available range
S0 WORD CH(axis) to execute instruction CH1 or CH2
Destination position to decide
S1 DWORD -2,147,483,648 to 2,147483,647
position
S2 DWORD Drive speed to decide position 1 to 100,000pps
S3 WORD Dwell time 0 to 65535ms
Acceleration time 1 to 5 of
S4 WORD Acceleration time
common configuration
Deceleration time 1 to 5 of
S5 WORD Deceleration time
common configuration

Device
Oper
and Inte
X Y M S D T C Z F V L R UW UB
ger
S0 ○ - ○ - ○ - - ○ - - - - ○ - ○
S1 ○ - ○ - ○ - - ○ - - - - ○ - ○
S2 ○ - ○ - ○ - - ○ - - - - ○ - ○
S3 ○ - ○ - ○ - - ○ - - - - ○ - ○
S4 ○ - ○ - ○ - - ○ - - - - ○ - ○
S5 ○ - ○ - ○ - - ○ - - - - ○ - ○

 Be sure that if set drive speed is over than max. speed (100,000pps), it may cause
malfunction.
 Acceleration/Deceleration time is one of Acceleration/Deceleration time 1 to 5 of ‘Common
Configuration’ at [Workspace]-[Parameter]-[MOTION] in atLogic.
 If set drive speed is lower than start speed, this set drive speed drives constant without
acceleration/deceleration drive.
 The range of destination position value is from -2,147,483,648 to 2,147483,647.

© Copyright Reserved Autonics Co., Ltd. 139


9 Workspace

(3) Ladder and mnemonic


 Ladder

 Mnemonic

 Please use the device that matches the size of each operand.
 Moving position by position direct drive instruction supports only absolute coordination. For
moving relative coordination, please action list.
(4) Function
 Executes position direct drive at rising edge of input condition.
 When arriving set destination position, it decelerates and stops the drive.
 This instruction is able to set only drive data items. Basic drive data (start speed,
acceleration time, deceleration time, etc.) is the set value of ‘Common Configuration’ at
[Workspace]-[Parameter]-[MOTION] in atLogic.

[Caution for common configuration]


 To use motion instruction, please designate the appropriate CH whether to use or not.
 Please set acceleration/deceleration time appropriately by drive speed. If you set
acceleration/deceleration time is too short or too long, it may cause malfunction.
 If set start speed is higher than starting frequency of motor, it may cause malfunction.

140 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

(5) Example of usage


“Moves position from current position to 50000 position.”
1) ‘MOTION’ tab

Designate ‘Common Configuration’ at [Workspace]-[Parameter]-[MOTION] in atLogic


as below figure.

For further details of each setting value, refer to “9.4.3.2 Motion setting parameter”.
This example is set enable CH, s/w upper/lower limit, start speed, origin point, home
search direction, acceleration time, deceleration time, acceleration time to origin,
deceleration time to origin, home search speed, enable S/W limit, enable H/W limit,
and origin back kind.

© Copyright Reserved Autonics Co., Ltd. 141


9 Workspace

2) PLC program

3) Drive description
This example is programmed to position direct drive by user’s input after origin back.
The device of MTPDM (position direct drive) is as following.
Device Value Description
M100 1 Using CH
M150 50000 Destination position
M200 10000 Drive speed
M250 1000 Dwell time
M300 1 Acceleration time
M350 1 Deceleration time

 Acceleration/Deceleration time is one of Acceleration/Deceleration time 1 to 5 of


‘Common Configuration’ at [Workspace]-[Parameter]-[MOTION] in atLogic. The other
time setting is not supported.
 Basic drive data (start speed, acceleration time, deceleration time, etc.) is the set value
of ‘Common Configuration’ at [Workspace]-[Parameter]-[MOTION] in atLogic.

142 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

1st When rising edge occurs at M0 device, executes MTOBC (origin back) instruction.
MTOBC(origin back) instruction searches origin point by origin back kind of
‘Common Configuration’ (This example is set as H/W.)
2nd When rising edge at M1 device, executes MTPDM(position direct drive) instruction .
3rd When executing MTPDM(position direct drive) instruction, acclerates up to the set
drive speed during acceleration time and drives constant with the set drive speed.
4th Decelerates during deceleration time and stops at the set destination position.

© Copyright Reserved Autonics Co., Ltd. 143


9 Workspace

9.4.3.5.3. MTIDM: indirect designate drive instruction


You can designate pattern list number and operates motion.
(1) Instruction

MTIDM S0 S1

(2) Operand
Operand Type Description Available range
S0 WORD CH(axis) to execute instruction CH1 or CH2
S1 WORD Number of pattern list 1 to 99

Device
Oper
and Inte
X Y M S D T C Z F V L R UW UB
ger
S0 ○ - ○ - ○ - - ○ - - - - ○ - ○
S1 ○ - ○ - ○ - - ○ - - - - ○ - ○

 You cannot over pattern list range from 1 to 99.


 Designated pattern list should have one more action list.
 For pattern list writing, refer to “9.4.3.3 Pattern writing”.
(3) Ladder and mnemonic
 Ladder

 Mnemonic

Please use the device that matches the size of each operand.

144 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

(4) Stop
① There are other stop result by MTSRS(stop instruction) or by special flag.
- MTSRS(normal stop): normal stop
Completes executing action of action list and finishes the pattern.
- MTSRS(normal stop)+ special flag (F400 or F402) : action list stop
To execute next actionlist or group during executing pattern, use this instructions. If
executing pattern is speed drive, this combination instructions stops speed drive
and executes next action list.
- MTSRS(normal stop)+ special flag(F401 or F403) : group stop
Stops the pattern which is executing as group type and executes the next action list
or group.
② MTEMS (emergency stop) : emergency stop
Executes emergency stop to action list which is executing as pattern drive.

MTEMS (emergency stop) instruction is emergency stop without deceleration and dwell time.
It may cause malfunction to motor. If it is not emergency, please use MTSRS (normal stop)
instruction to stop normally.
(5) Function
 Executes indirect designate drive at rising edge of input condition.
 It is able to execute user-defined patterns.

© Copyright Reserved Autonics Co., Ltd. 145


9 Workspace

(6) Example of usage


“Loads and executes the saved pattern at pattern list 1.”
MTIDM (indirect designate drive) instruction executes the designated pattern list number. It
should be write pattern list. To write pattern list, common configuration, action list should be
set.
1) ‘MOTION’ tab

Designate ‘Common Configuration’, ‘Action list’, and ‘Pattern list’ at [Workspace]-


[Parameter]-[MOTION] in atLogic as below figure.

① Common configuration

② Action list

146 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

③ Pattern list

For pattern list writing, refer to “9.4.3.3 Pattern writing”.


2) PLC program

3) Drive description
This example is programmed to position direct drive by user’s input at pattern list after
origin back. The device of MTIDM (indirect designate drive) is as following.
Device Value Description
M100 1 Using CH
M200 1 Pattern list

 Check there is value of designated pattern list.


 Check there is action list value of designated pattern list contents.

© Copyright Reserved Autonics Co., Ltd. 147


9 Workspace

1st When rising edge occurs at M0 device, executes MTOBC (origin back) instruction.
MTOBC(origin back) instruction searches origin point by origin back kind of
‘Common Configuration’ (This example is set as H/W.)
2nd When rising edge occurs at M1 device, executes MTIDM(indirect designate drive)
instruction.

MTSRS (normal stop) instruction in pattern list is available for pattern complete,
action list complete, group complete.

148 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

9.4.3.5.4. MTIPT: line interpolation instruction


It executes line interpolation drive with set action list.
(1) Instruction

MTIPT S0 S1 S2 S3

(2) Operand
Operand Type Description Available range
S0 WORD CH of first axis 1 to 2
S1 DWORD Action list number of first axis 1 to 99
S2 WORD CH of second axis 1 to 2
S3 ORD Action list number of second axis 1 to 99

Device
Oper
and Inte
X Y M S D T C Z F V L R UW UB
ger
S0 - - - - - - - - - - - - - - ○
S1 ○ - ○ - ○ - - ○ - - - - ○ - ○
S2 - - - - - - - - - - - - - - ○
S3 ○ - ○ - ○ - - ○ - - - - ○ - ○

 The action list designated as speed drive is not available to line interpolation drive.
 The axis which is more distance than the other is set as main axis.
 If each distance of CH1 and CH2 is same, CH1 becomes main axis.
(3) Ladder and mnemonic
 Ladder

 Mnemonic

© Copyright Reserved Autonics Co., Ltd. 149


9 Workspace

 Please use the device that matches the size of each operand.
 Action list is available only when drive type is position drive.
(4) Stop
① MTSRS : normal stop
Executes normal stop to two axis which are line driving at the same time.
② MTEMS : emergency stop
Executes emergency stop to two axis which are line driving at the same time.
(5) Function
 Executes line interpolation drive at rising edge of input condition.
 It drives for the moving distance of two axes to line from current stop position to destination
position with CH1, CH2 axes.
 The decision of main axis and sub axis is by movement distance. The axis which is more
distance than the other is set as main axis. If each distance of two axes is same, CH1
becomes main axis.
 The speed of main axis does not refer to drive parameter’s value. The below operation
formula helps to decide drive speed, acceleration time, and deceleration time and it
executes the drive.

 Be sure that two axes stop at the same time when stopping drive.
 MTEMS (emergency stop) instruction is emergency stop without deceleration and dwell
time. It may cause malfunction to motor. If it is not emergency, please use MTSRS (normal
stop) instruction to stop normally.

150 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

(6) Example of usage


“Executes line interpolation drive with action list 1 and action list 2.”
1) ‘MOTION’ tab

Designate ‘Common Configuration’, ‘Action list’ at [Workspace]-[Parameter]-


[MOTION] in atLogic as below figure.

① Common configuration

② Action list

© Copyright Reserved Autonics Co., Ltd. 151


9 Workspace

2) PLC program

3) Drive description
1st When rising edge occurs at M0 device, executes MTOBC (origin back) instruction.
MTOBC(origin back) instruction searches origin point by origin back kind of
‘Common Configuration’ (This example is set as H/W.)
2nd When rising edge at M10 device, executes MTOBC(origin back) instruction.
MTOBC(origin back) instruction searches origin point by origin back kind of
‘Common Configuration’ (This example is set as H/W.)
3rd When rising edge at M1 device, executes MTIPT(line interpolation) instruction.
At line interpolation drive, the CH1 axis which is more distance than the other CH2
is set as main axis. In this case, CH2 sub axis’s drive data is ignored and it has the
drive data by the below formula.

Therefore, main axis speed is 5000 in this example and sub axis speed is 3000 by
above formula.

152 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

9.4.3.5.5. MTUAI: action list drive instruction


You can designate action list number to execute motion.
(1) Instruction

MTUAI S0 S1

(2) Operand
Operand Type Description Available range
S0 WORD CH(axis) to execute instruction CH1 or CH2
S1 WORD Number of action list 1 to 99

Device
Oper
and Inte
X Y M S D T C Z F V L R UW UB
ger
S0 ○ - ○ - ○ - - ○ - - - - ○ - ○
S1 ○ - ○ - ○ - - ○ - - - - ○ - ○

 You cannot over pattern list range from 1 to 99.


 You cannot use the action list which does not have any contents.
(3) Ladder and mnemonic
 Ladder

 Mnemonic

Please use the device that matches the size of each operand.
(4) Function
 Executes action list drive at rising edge of input condition.
 Executes user-defined action list.

© Copyright Reserved Autonics Co., Ltd. 153


9 Workspace

(5) Example of usage


“Executes action list 1.”
MTUAI (action list drive) instruction executes the designated action list number. You should
write action list. To write action list, you should designate ‘Common Configuration’ at first.
1) ‘MOTION’ tab

Designate ‘Common Configuration’, and ‘Action list’ at [Workspace]-[Parameter]-


[MOTION] in atLogic as below figure.

① Common configuration

154 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

② Action list

There are two type of action list; position, or speed drive.


2) PLC program

3) Drive description
This example is programmed to action list drive by user’s input after origin back. The
device of MTUAI (action list drive) is as following.
Device Value Description
M100 1 Using CH
M200 1 Action list

 Action list range is from 1 to 99.


 There should be designated action list value before executing action list drive
instruction.

© Copyright Reserved Autonics Co., Ltd. 155


9 Workspace

1st When rising edge occurs at M0 device, executes MTOBC (origin back) instruction.
MTOBC(origin back) instruction searches origin point by origin back kind of
‘Common Configuration’ (This example is set as H/W.)
2nd When rising edge occurs at M1 device, executes MTUAI(action list drive) instruction.
MTUAI(action list drive) uses CH1 by operand setting value and executes action list
1.

 You cannot use the action list which does not have any contents.
 Position drive of action list has two types; absolute or relative. Be sure to use this
properly.

156 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

9.4.3.5.6. MTMEC: error remove instruction


This instrucion clears error flag during motion drive.
(1) Instruction

MTMEC S0

(2) Operand
Operand Type Description Available range
S0 WORD CH(axis) to execute instruction CH1 or CH2

Device
Oper
and Inte
X Y M S D T C Z F V L R UW UB
ger
S0 ○ - ○ - ○ - - ○ - - - - ○ - ○

(3) Ladder and mnemonic


 Ladder

 Mnemonic

(4) Function
 Executes error remove instruction at rising edge of input condition.
 Clears errors of user-defined CH.

© Copyright Reserved Autonics Co., Ltd. 157


9 Workspace

9.4.3.5.7. MTEMS: emergency stop instruction


If there is emergency situation during motion drive, executes emergency stop to stop all actions
related with motion.
(1) Instruction

MTEMS S0

(2) Operand
Operand Type Description Available range
S0 WORD CH(axis) to execute instruction CH1 or CH2

Device
Oper
and Inte
X Y M S D T C Z F V L R UW UB
ger
S0 ○ - ○ - ○ - - ○ - - - - ○ - ○

(3) Ladder and mnemonic


 Ladder

 Mnemonic

(4) Function
 Executes emergency stop instruction at rising edge of input condition.
 All motion actions of user-defined CH stops urgently.
 Emergency stop flag of user-defined CH is activated.
 Error designated CH is able to clear by MTMEC (error remove) instruction.

MTEMS (emergency stop) instruction is emergency stop without deceleration and dwell time.
It may cause malfunction to motor.

158 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

9.4.3.5.8. MTCPP: current position preset instruction


It does not mechanical move and chages saved current position to set position.
(1) Instruction

MTCPP S0 S1

(2) Operand
Operand Type Description Available range
S0 WORD CH(axis) to execute instruction CH1 or CH2
S1 DWORD To be changed position value -2,147,483,648 to 2,147,483,647

Device
Oper
and Inte
X Y M S D T C Z F V L R UW UB
ger
S0 ○ - ○ - ○ - - ○ - - - - ○ - ○
S1 ○ - ○ - ○ - - ○ - - - - ○ - ○

If using S/W limit, you cannot set current position preset value by over S/W limit value.
(3) Ladder and mnemonic
 Ladder

 Mnemonic

Please use the device that matches the size of each operand.
(4) Function
 Executes current position preset instruction at rising edge of input condition.
 Changes current position to user-defined set position.

If you set current position preset during motion driving, this instruction does not operate.

© Copyright Reserved Autonics Co., Ltd. 159


9 Workspace

9.4.3.5.9. MTFOS: forced home setting instruction


Sets current position as designated origin point position from ‘Common Configuration’.
(1) Instruction

MTFOS S0

(2) Operand
Operand Type Description Available range
S0 WORD CH(axis) to execute instruction CH1 or CH2

Device
Oper
and Inte
X Y M S D T C Z F V L R UW UB
ger
S0 ○ - ○ - ○ - - ○ - - - - ○ - ○

(3) Ladder and mnemonic


 Ladder

 Mnemonic

(4) Function
 Executes forced home setting instruction at rising edge of input condition.
 It changes by force current position and origin point position from the set origin position in
‘Common Configuration’. In this case, it does not mechanical move.

160 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

9.4.3.5.10.MTSRS: normal stop instruction


Executes normal stop instruction to currently motion driving CH
(1) Instruction

MTSRS S0

(2) Operand
Operand Type Description Available range
S0 WORD CH(axis) to execute instruction CH1 or CH2

Device
Oper
and Inte
X Y M S D T C Z F V L R UW UB
ger
S0 ○ - ○ - ○ - - ○ - - - - ○ - ○

(3) Ladder and mnemonic


 Ladder

 Mnemonic

(4) Function
 Executes normal stop instruction at rising edge of input condition.
 Normal stop gives stop sign to appropriate CH with deceleration, stop, dwell time for
currently motion driving as basic stop method.
 In MTIDM (indirect designate drive) instruction, MTSRS (normal stop) instruction and
special flag execute as following.
① MTSRS(normal stop): normal stop
Completes executing action of action list and finishes the pattern.
② MTSRS(normal stop)+ special flag (F400 or F402) : action list stop
To execute next actionlist or group during executing pattern, use this instructions. If
executing pattern is speed drive, this combination instructions stops speed drive and
executes next action list.
③ normal stop)+ special flag(F401 or F403) : group stop
Stops the pattern which is executing as group type and executes the next action list or
group.

© Copyright Reserved Autonics Co., Ltd. 161


9 Workspace

9.4.3.5.11.MTOBC: origin back instruction


Before executing motion action, designates action position as origin point or returns back the set
origin point during motion driving.
(1) Instruction

MTOBC S0

(2) Operand
Operand Type Description Available range
S0 WORD CH(axis) to execute instruction CH1 or CH2

Device
Oper
and Inte
X Y M S D T C Z F V L R UW UB
ger
S0 ○ - ○ - ○ - - ○ - - - - ○ - ○

(3) Ladder and mnemonic


 Ladder

 Mnemonic

162 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

(4) H/W origin point decision


① H/W origin point decision
If settting 'H/W' of origin back kind in ‘Common Configuration’, origin point is decided by
current position and home search direction.

© Copyright Reserved Autonics Co., Ltd. 163


9 Workspace

② S/W origin point decision


To use S/W origin point decision, use MTFOS(forced home setting) instruction to set origin
point by force.
(5) Origin back
There are two types of origin back kind; H/W and S/W. H/W origin back type is searching by
home search direction as same as that of the setting origin point. S/W origin back type is
returning to the saved origin point with home search speed.

9.4.3.5.12.MTOVV: speed override instruction


This instruction changes the set speed during speed driving.
(1) Instruction
MTOVV S0 S1

(2) Operand
Operand Type Description Available range
S0 WORD CH(axis) to execute instruction CH1 or CH2
S1 DWORD To be changed drive speed value 1 to100,000 pps

Device
Oper
and Inte
X Y M S D T C Z F V L R UW UB
ger
S0 ○ - ○ - ○ - - ○ - - - - ○ - ○
S1 ○ - ○ - ○ - - ○ - - - - ○ - ○

 Be sure that if set drive speed is over than max. speed (100,000pps), it may cause
malfunction.
 If set drive speed is lower than start speed, this set drive speed drives constant without
acceleration/deceleration drive.
 Be sure that rapid speed change may cause motor step out.

164 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

(3) Ladder and mnemonic


 Ladder

 Mnemonic

 Please use the device that matches the size of each operand.
 This instruction is only available when speed driving.
 Be sure that this instruction is not able to use in stop status.
 This instruction is available only for constant speed area. If you using this instruction to
acceleration, deceleration, or dwell areas, it is not executed, and error occurs. Current
action driving is continued.
(4) Function
 Executes speed override instruction at rising edge of input condition.
 Changes drive speed from current drive speed to set drive speed.

© Copyright Reserved Autonics Co., Ltd. 165


9 Workspace

(5) Example of usage


“Changes current driving speed 10000 to 50000.”
1) ‘MOTION’ tab
MTOVV (speed override) instruction is available only when speed drive. In this
example, executes speed override drive during speed direct drive. Therefore, you
should set the items for speed direct drive.

Designate ‘Common Configuration’ at [Workspace]-[Parameter]-[MOTION] in atLogic


as below figure.

166 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

2) PLC program

3) Drive description
This example is programmed to speed direct drive by user’s input after origin back.
The device is as following.
Device Value Description
M100 1 Using CH
M150 1 Drive direction(0: backward 1: forward)
M200 10000 Drive speed
M250 1000 Dwell time
M300 1 Acceleration time
M350 1 Deceleration time

 Acceleration/Deceleration time is one of Acceleration/Deceleration time 1 to 5 of


‘Common Configuration’ at [Workspace]-[Parameter]-[MOTION] in atLogic. The other
time setting is not supported.
 Basic drive data (start speed, acceleration time, deceleration time, etc.) is the set value
of ‘Common Configuration’ at [Workspace]-[Parameter]-[MOTION] in atLogic.

© Copyright Reserved Autonics Co., Ltd. 167


9 Workspace

1st When rising edge occurs at M0 device, executes MTOBC(origin back) instruction.
MTOBC(origin back) instruction searches origin point by origin back kind of
‘Common Configuration’ (This example is set as H/W.)
2nd When rising edge occurs at M1 device, executes MTVDM (speed direct drive)
instruction.
3rd When executing MTVDM(speed direct drive) instruction, speed drives with set drive
speed.
4th During operating MTVDM(speed direct drive) action, if rising edge occurs at M3
device, it executes MTOVV(speed override) instruction and changes drive speed to
50000.
5th MTOVV(speed override) instruction is speed drive. It drives continuously until
MTSRS(normal stop) instruction occurs.
MTOVV(speed override) instruction is able to stop by MTSRS(normal stop), or
MTEMS(emergency stop) instructions.

Changed speed is not over maximum speed (100,000pps).

168 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

9.4.3.5.13.MTOVP: position override instruction


This instruction changes the set position as destination position.
(1) Instruction

MTOVP S0 S1

(2) Operand
Operand Type Description Available range
S0 WORD CH(axis) to execute instruction CH1 or CH2
S1 DWORD To be changed position value -2,147,483,648 to 2,147,483,647

Device
Oper
and Inte
X Y M S D T C Z F V L R UW UB
ger
S0 ○ - ○ - ○ - - ○ - - - - ○ - ○
S1 ○ - ○ - ○ - - ○ - - - - ○ - ○

In case of S/W limit using, changing position should not be over S/W limit value.
(3) Ladder and mnemonic
 Ladder

 Mnemonic

 Please use the device that matches the size of each operand.
 This instruction is only available when position driving.
 Be sure that this instruction is not able to use in stop status.
 This instruction is available only for constant speed area. If you using this instruction to
acceleration, deceleration, or dwell areas, it is not executed, and error occurs. Current
action driving is continued.

© Copyright Reserved Autonics Co., Ltd. 169


9 Workspace

(4) Function
 Executes position override instruction at rising edge of input condition.
 Changes destination position from origin destination position to the set position during
position driving.
 If set position is lower than current position, it stops at the current position.
 If set position is upper than current position, it stops at the set position.
(5) Example of usage
“Changes destination position 30000 to 50000 during position drive.”
1) ‘MOTION’ tab
MTOVP (position override) instruction is available only when position drive. In this
example, executes position override during position direct drive. Therefore, you
should set the item for position direct drive.

Designate ‘Common Configuration’ at [Workspace]-[Parameter]-[MOTION] in atLogic


as below figure.

170 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

2) PLC program

3) Drive description
This example is programmed to position direct drive by user’s input after origin back.
The device is as following.
Device Value Description
M100 1 Using CH
M150 30000 Destination position
M200 10000 Drive speed
M250 1000 Dwell time
M300 1 Acceleration time
M350 1 Deceleration time

 Acceleration/Deceleration time is one of Acceleration/Deceleration time 1 to 5 of


‘Common Configuration’ at [Workspace]-[Parameter]-[MOTION] in atLogic. The other
time setting is not supported.
 Basic drive data (start speed, acceleration time, deceleration time, etc.) is the set value
of ‘Common Configuration’ at [Workspace]-[Parameter]-[MOTION] in atLogic

© Copyright Reserved Autonics Co., Ltd. 171


9 Workspace

1st When rising edge occurs at M0 device, executes MTOBC(origin back) instruction.
MTOBC(origin back) instruction searches origin point by origin back kind of
‘Common Configuration’ (This example is set as H/W.)
2nd When rising edge occurs at M1 device, executes MTPDM(position direct drive)
instruction.
3rd When executing MTPDM(position direct drive) instruction, acclerates up to the set
drive speed during acceleration time and drives constant with the set drive speed.
4th During operating MTPDM(position direct drive) action, if rising edge occurs at M2
device, it executes MTOVP(position override) instruction and changes destination
position to 50000.
5th Decelerates the drive for deceleration time and stops at the changed destination
position.

172 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

9.4.4 High-speed Counter


9.4.4.1 High-speed counter overview
High-speed input signal can be counted. It is normally used to input and control the position
information from pulse input devices such as encoder. It can be used up to 2CH and it can count
signals with a maximum speed of 50kpps per CH. (1 multiplication standard, 2 multiplication:
25kpps, 4 multiplication 12.5kpps)
Only LP-A070 and LP-A104 series includes high-speed counter function..
High-speed counter contains total 2 types and 6 modes as below.
Multipli-
Type Counter type
cation
Up count when input is rising edge

Mode 1 ×1

1 phase
counter
Down count when input is falling edge

Mode 2 ×1

Up count when input A precedes and down count when input B


precedes (count only on rising/falling edge)

Mode 1 ×2

2 phase
counter
Up count when input A is rising edge, input B is 0 and down
count when input A is rising edge, input B is 1

Mode 2 ×1

© Copyright Reserved Autonics Co., Ltd. 173


9 Workspace

Multipli-
Type Counter type
cation
Up count when input A is rising edge, input B is 0 and down
count when input A is 0, input B is rising edge

Mode 3 ×1

Up count when input A precedes and down count when input B


precedes (count all when input A/input B is rising/falling)

Mode 4 ×4

174 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

9.4.4.2 High-speed counter parameter


High-speed counter tab is activated in LP-A070 and LP-A104 seires.
At least one of CH1 or CH2 must be set in high-speed counter parameter to use the high-speed
counter instruction in atLogic.
When both CH1 and CH2 are set as ‘Std.Out (OFF)’ in parameter phase, high-speed counter
instruction is not on the application instruction list.
(1) Using Internal device
When ‘Use internal device’ is checked, the direct modification is available through LP
without using atLogic after download the program to LP.
When ‘Use internal device’ is checked, ‘Device’ is activated.
By clicking ‘Device’, ‘Device select’ dialog box appears to configure the internal device.
(2) High-speed counter parameter
Description
Item Type
CH1 axis CH2 axis
Whether to use high-speed counter, select the number of phase for
each CH.

Phase WORD 1 phase: use 1 phase counter 1 phase: use 1 phase counter
2 phase: use 2 phase counter Standard output(OFF): not use
(use 2 input port) When CH1 is set as 2 phase
Standard output (OFF): not use counter, CH2 is not available

Set high-speed counter mode.

Using 1 phase counter,


1: up count
2: down count
Using 2 phase counter,
1: up/down count by phase
difference of input 1/input 2 (2 1: up count
Mode WORD multiplication) 2: down count
2: up/down count by input 2 When CH1 is set as 2 phase
status counter, CH2 is not available
3: input 1 is up count,
input 2 is down count
4: up/down count by phase
difference of input 1/input 2
(4multiplication)

Match value 1 Set counting value to generate interrupt


DWORD
Match value 2 Set range: 0 to 16,777,216
Set output contact type
Contact A (open contact)
Output type Contact B (closed contact)
Since the current high-speed counter parameter output type is
PNP (sync type), only contact A is available.
Select input port to use as input signal

Using 1 phase counter,


Pulse input port
Input port 1 WORD Set range: X0 to X7
Set range: X0 to X7
Using 2 phase counter,
First input port
Set range: X0 to X7

© Copyright Reserved Autonics Co., Ltd. 175


9 Workspace

Description
Item Type
CH1 axis CH2 axis
Select input port to use as input signal

Input port 2 WORD Using 2 phase counter,


Second input port
Set range: X0 to X7

9.4.4.3 Special device and I/O device


(1) Special device
CH Name Type R/W Function
Whether to start high-speed counter
F300 BIT R 1: start
2: stop
Whether to match with match value1
(Stay ON after matching, user clear when needed)
F303 BIT R/W
1: match
0: not match
Whether to match with match value2
(Stay ON after matching, user clear when needed)
F304 BIT R/W
1: match
0: not match
Counter mode
F301 BIT R 1: up counting
0: down counting
Overflow status (current counting value exceeds
16,777,216)
F308 BIT R/W
1: overflow
0: not overflow
Current counting value
F192 DWORD R
Range: 0 to 16,777,216
CH1
Match value1 set value
F196 DWORD R/W
Range: 0 to 16,777,216
Match value2 set value
F198 DWORD R/W
Range: 0 to 16,777,216
Whether to use current CH
0: high-speed counter not use
1: use only CH1, 1 phase counter
F212 WORD R
2: use only CH2, 1 phase counter
3: use both CH1 and CH2, 1 phase counter
4: use CH1, 2 phase counter
Display currently using high-speed counter mode
Using 1 phase counter: 1, 2
F190 WORD R
Using2 phase counter: 1, 2, 3, 4
CH not use: -1
CH1 current total counting value
The number of total pulse input after counting (64 bit)
current total counting value =
F220 WORD R
total counting value + current HSCNT counting value
Initialize to 0 when using HSRST instruction or replacing
PLC program

176 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

CH Name Type R/W Function


Whether to start High-speed counter
F310 BIT R 1: start
2: stop
Whether to match with match value21
(Stay ON after matching, user clear when needed)
F313 BIT R/W
1: match
0: not match

Whether to match with match value 2


(stay ON after matching, user clear when needed)
F314 BIT R/W
1: match
0: not match

Counter mode
F311 BIT R 1: up counting
0: down counting
Overflow status (current counting value exceeds
16,777,216)
F318 BIT R/W
1: overflow
0: not overflow
Current counting value
F202 DWORD R
Range: 0 to 16,777,216
CH2
Match value 1 set value
F204 DWORD R/W
Range: 0 to 16,777,216
Match value 2 set value
F206 DWORD R/W
Range: 0 to 16,777,216
Whether to use current CH
0: high-speed counter not use
1: use only CH1, 1 phase counter
F212 WORD R
2: use only CH2, 1 phase counter
3: use both CH1 and CH2, 1 phase counter
4: use CH1, 2 phase counter
Display currently using high-speed counter mode
Using 1 phase counter: 1, 2
F191 WORD R
Using 2 phase counter: 1, 2, 3, 4
CH not use: -1
CH2 current total counting value
The number of total pulse input after counting
(64 bit)
F228 WORD R current total counting value =
total counting value + current HSCNT counting value
Initialize to 0 when using HSRST instruction or replacing
PLC program

(2) I/O device


X0 to X7 is available as high-speed counter input port.
In case of using motion controller function and high-speed counter function at the
same time, X0 to X5 is occupied by the motion controller and cannot be used as input
port of high-speed counter.
The output pulse through high-speed counter HSCNT instruction is only available with
Y4 to Y7.
For further details of motion controller I/O device, refer to ‘(5) I/O device’ in
‘9.4.3.4Special device and error device’.

© Copyright Reserved Autonics Co., Ltd. 177


9 Workspace

9.4.4.4 High-speed counter instruction

9.4.4.4.1. HSCNT: high-speed counter instruction


Counting the input signal at high-speed and reaching the match value, interrupt occurs or output
device turns ON. It can be set as ON and OFF as long as output device ON retention time.
(1) Instruction

HSCNT S0 S1 S2 D S3

(2) Operand
Operand Type Description Available range
S0 WORD Channel number 1 to 2
S1 DWORD counter contact to use 0 to 16,777,215 (24 bit)
High-speed counter parameter
S2 WORD High-speed counter match value
match value 1 or 2

200: up counting→down
counting, 100: down
BIT In case of current counting value counting→up counting,
and match value are same,
D or 11to14: LP EEI instruction
interrupt occurs and output
Const device prints out. interrupt routine number
0: no output,
output device: Y, M, S, D, T, C, Z,
F, L, UB
1 to 10,000 (us),
The time of D output device output remains when value is 0
S3 WORD
remains ON (recommended to set over 40us
when making output pulse)

Device
Operand
X Y M S D T C Z F V L R UW UB Integer
S0 - - - - - - - - - - - - - - ○
S1 - - - - - - ○ - - - - - ○ - -
S2 - - - - - - - - - - - - - - ○
D - ○ ○ ○ ○ ○ ○ ○ ○ - ○ - - ○ ○
S3 - - - - - - - - - - - - - - ○

 Pulse input can be counted at a rate of 50kpps per channel at maximum at 1 multiplication,
25kpps at 2 multiplication and up to 12.5kpps at 4 multiplication.
 Do not set the match value 1 and 2 to consecutive values. Set the match value to make
different at least 3 from the high-speed counter
 The output pulse through the high-speed counter HSCNT instruction is only available
through the Y4 to Y7 port.

178 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

(3) Ladder and mnemonic


 Ladder Match Interrupt or Output device
Using
channe Counter value output device ON time

 Mnemonic

Please use the device that matches the size of each operand.
(4) Function
 The pulse is counting if the external pulse is entered when input contact (M0).
 Counting the input signal at high-speed and reaching the match value, interrupt occurs or
output device turn ON.
 Interrupt
200: up counting→down counting, 100: down counting→up counting, 11 to 14: LP EEI
Interrupt routine number, 0: no output
 Output device
M, D, F, Z, T, Y, C, L, S, UB bit device ON
 Output device ON time
Output device stays ON as long as the set time (us) then turns OFF.
 The second parameter in HSCNT, the counter device, cannot be used as a contact device.
If the contact is required, define directly on the output device.
 The second parameter in HSCNT, the counter device, must be assigned a different number
for each channel and for each match value.
It is not available to direct map the C device with High-speed counter HSCNT in drawing
program at Designer. To use the high-speed counter current value in the programming
screen, use the special device which has current counting value among the special device
of high-speed counter.
- CH1: F192, CH2: F202

© Copyright Reserved Autonics Co., Ltd. 179


9 Workspace

 Using the high-speed counter’s interrupt signal, 4 ladder interrupt routines (EEI) can be
configured up to EEI Instruction 11 to 14.
- In consideration of the PLC scan performance and the number of instruction steps, design
the interrupt routine so that the entire high-speed counter interrupt routine does not load
PLC operation.
- Be careful when designing the interrupt routine since it may cause scanning problems due
to the interrupt service routine.
- if the interrupt routine is too long or the interrupt drive internal using HSSET is too short,
only the interrupt routine will be activated without PLC scan operation.
- The example of configuring a ladder interrupt routine using the interrupt instruction EEI 11.

When match value1 of HSCNT instruction CH1 matches current counting value, 11th
interrupt is generated and Y5 and Y6 in the interrupt routine turns ON at the same time.

180 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

(5) Example of usage


“When the current counting value reaches 300, it switches to the
down counter.”
1) ‘High-speed counter’ tab
Create the high-speed counter in atLogic [Work space]-[Parameter]-[High-speed
counter] tab as shown below.

2) PLC program

3) Drive description
It is programmed to switch as down counter when the current counting value reaches
to match value. The devices are listed as the table below.
Device Value Description
M0 1/0 Start signal
Current counting
C1 Counter device/Counter contact
value
1st If a pulse is entered to CH1 input port X0 while M0 is ON, the curent count value of
counter device C1 will rise.
2nd When C1 current counting value reaches match value 2(300), the interrupt 200(up
counting→down counting) occurs.
3rd After the interrupt occurs, the C1 current counting value is decremented depending
on the pulse input of X0.

© Copyright Reserved Autonics Co., Ltd. 181


9 Workspace

9.4.4.4.2. HSSET: high-speed counter set instruction


Counting the input signal at high speed and reaching the match value, current counting value is
set as set value.
(1) Instruction

HSSET S0 S1 S2

(2) Operand
Operand Type Description Available range
S0 WORD Channel number 1 to 2
S1 DWORD Set value 0 to 16777215
High-speed counter parameter
S2 WORD High-speed counter match value
match value 1 or 2

Device
Operand
X Y M S D T C Z F V L R UW UB Integer
S0 - - - - - - - - - - - - - - ○
S1 - - - - - - - - - - - - - - ○
S2 - - - - - - - - - - - - - - ○

 Pulse input can be counted at a rate of 50kpps per channel at maximum at 1 multiplication,
25kpps at 2 multiplication and up to 12.5kpps at 4 multiplication.
 Do not set the match value 1 and 2 to consecutive values. Set the match value to make
different at least 2 from the high-speed counter.
 Use with HSCNT instruction.
 Set the match value at least 60 us interval to reset the counting value using match value.
Ex) the time per 1 pulse is 20 us in case of 50kpps pulse. Since 60us=20us×3, set the
match value to make different at least 3 form the set value.

182 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

 If the output pulse width through HSCNT is greater than the pulse width of the match value,
the system may go down. Set the HSCNT output pulse width to less than half of the match
value pulse width.
Ex) The image below shows the waveform measured when the pulse value of 50kpps is set
to match value 10 (200us=20us×10) and output pulse 2 (40us=20us×2).
The output pulse length must be less than half of the input pulse period (100us).

(3) Ladder and mnemonic


 Ladder Using Setting Match
channe value value

 Mnemonic

Please use the device that matches the size of each operand.
(4) Function
 Activate when the input signal turns ON.
 Counting the input signal at high speed and reaching the match value, current counting
value is set as set value.

© Copyright Reserved Autonics Co., Ltd. 183


9 Workspace

(5) Example of usage


“When the current counting value reaches 300, the current counting value
is set to 0.”
1) ‘High-speed counter’ tab
Create the high-speed counter in atLogic [Work space]-[Parameter]-[High-speed
counter] tab as shown below.

2) PLC program

3) Drive description
It is programmed to set the current counting value as the set value when the current
counting value reaches to match value. The devices are listed as the table below.
Device Value Description
M0 1/0 Start signal
current counting
C1 Counter device
value
Y0 1/0 Output contact
M1 1/0 HSSET start signal
1st HSSET instruction activates as the HSSET start signal is entered.
2nd If CH1 input signal is ON while M0 is ON, the current counting value of counter
device C1 will rise.
3rd When C1 current counting value reaches match value 1 (100), the output contact Y0
stays ON in 50us.
4th Even after Y0 is ON, the current counting value is set to 0 by the HSSET instruction
when the current couniting value rises to reach match value 2 (300).
5th Repeat the process from 2nd to 4th.

184 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

9.4.4.4.3. HSRST: high-speed counter reset instruction


When the start signal is ON while PLC program scanning, the current counting value is set as
the set value.
(1) Instruction

HSRST S0 S1

(2) Operand
Operand Type Description Available range
S0 WORD Channel number 1 to 2
S1 DWORD Set value 0 to 16,777,215

Device
Operand
X Y M S D T C Z F V L R UW UB Integer
S0 - - - - - - - - - - - - - - ○
S1 - - - - - - - - - - - - - - ○

 When the start signal is ON, the set value is applied on next scan. It may cause scan delay.
 Use with HSCNT instruction.
(3) Ladder and mnemonic
 Ladder Using Setting
channe value

 Mnemonic

Please use the device that matches the size of each operand.
(4) Function
 When the start signal is on while PLC program scanning, the current counting value is set
as the set value.

© Copyright Reserved Autonics Co., Ltd. 185


9 Workspace

(5) Example of usage


“When the start signal is ON, the current counting value is set to 0.”
1) PLC program

2) Drive description
It is programmed to set the current counting value as the set value when the start
signal is ON. The devices are listed as the table below.
Device Value Description
M0 1/0 Start signal
Current counting
C1 Counter device
value
Y0 1/0 Output contact
M1 1/0 HSRST start signal
When M1 is ON while PLC program scanning, the current counting value is set as the
set value.

186 © Copyright Reserved Autonics Co., Ltd.


9 Workspace

© Copyright Reserved Autonics Co., Ltd. 187


.

* Dimensions or specifications on this manual are subject to change and some models may be discontinued without notice.

MWL-ALV2U1-V1.1-1907US

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy