Contents
2 MP2300 Memory Map
3 MP2300 Register Addressing
4 LIO Autoconfiguration Register Allocation
5 Basic Set of Registers
6 Motion Command Code Positioning
7 MPE720 Serial/Ethernet Communication
8 General Startup Procedure
9 Function Block Startup Procedure
10 Motion Program Startup Procedure
11 Motion Program Work Registers
12 Data Trace
13 Reference Units
14 Terminology Synonyms
14 Register Offsets
MP2300 Quick Reference Guide Rev1.5
MP2300 Quick Reference Guide Rev1.5
MP2300 Memory Map
5.5 MB Stores ladder drawings, Local registers and special tables
|
S (Global) |
SW0000-1023 |
C (Global) |
|
M (Global) |
(MW00000-65535) |
|
||
|
System information and status (read only) |
Constant, Read only registers. |
General Multi-Purpose read/write registers |
|
|||||
|
Example: Flicker relays, Calendar, |
Data that end user can change in MPE720 |
User Free: MW00000-29999 |
D |
|||||
Backup) |
Scan time setting, error codes, ect. |
without needing to access the drawings. |
Convention: |
|
E |
||||
|
|
|
|
|
Axis#1:MW1000-1999, Axis#2:MW2000-2999 |
C |
|||
|
|
|
|
|
|
||||
|
|
|
|
|
|
I |
|||
|
Fixed Parameters (for each axis) |
Example: |
|
*Function Block RDA: MW30000-65535 |
|||||
|
|
M |
|||||||
(Battery |
Written to in Module Configuration |
|
Mechanical system specifications |
Axis#1:MW30100. Offset=200 per axis |
A |
||||
Define axis units, motor specs. |
(pulley ratios, encoder counts per load rev) |
Master-Slave: MW56000. Offset=50 per M-S Pair |
L |
||||||
|
|||||||||
|
Cannot be written by ladder |
|
|
|
Reference: RDA Spreadsheet |
|
|||
Memory |
Changes usually require power cycle |
Reference: |
|
* If using motion |
function blocks. |
|
|||
I (Input) |
IW0000-FFFF |
|
O (Output) |
OW0000-FFFF |
|
H |
|||
general purpose & motion data (Read only by application program) |
general purpose &motion data (Read/Write by application program) |
E |
|||||||
Register |
Physical Inputs: IW0000-7FFF |
|
Physical Outputs: OW0000-7FFF |
|
X |
||||
Convention: |
IW0410+ for Local I/O modules |
Convention: |
OW0410+ for Local I/O Modules |
A |
|||||
|
IW0010+ for M-LINK I/O modules |
|
OW0010+ for M-LINK I/O modules |
D |
|||||
|
|
|
|||||||
|
|
|
E |
||||||
|
Axis (Motion) Input: IW8000-807F (Module#1, Axis#1) |
Axis (Motion) Output: OW8000-807F (Module#1, Axis#1) |
|||||||
|
C |
||||||||
|
"motion monitoring" |
Offset |
80h per axis |
"motion setting" |
Offset |
80h per axis |
I |
||
|
|
|
|
800h per module |
|
|
800h per module |
M |
|
|
Example: |
IB8000 0 = controller ready |
Example: |
OB8000 0 = turn servo on |
A |
||||
|
Reference: |
Basic Module User Man 7.2.3 |
Reference: |
Basic Module User Man 7.2.2 |
L |
||||
|
|
||||||||
|
D (Local Registers)* |
|
|
|
|
|
|
||
up) |
Used as general purpose read/write in the defined Drawing only. |
|
|
|
|||||
Suggested |
Bits: |
|
DW00000-00008 |
(DB000000~DB00008F) |
|
|
|||
at power |
|
|
|
||||||
Convention: |
One-Shot |
|
DW00009 |
(DB000090~DB00009F) |
|
|
|||
|
Word Operations: |
DW00010-00025 |
(16-bit integers) |
|
|
||||
|
Accumulators: |
DW00026 |
(16-bit Integer accumulator) |
|
|
||||
FLASH |
|
|
|
DW00027 |
(16-bit Logic [Hexadecimal] Accumulator) |
D |
|||
|
|
|
DL00028 |
(32-bit Long Accumulator) |
|
C |
|||
|
|
|
|
|
E |
||||
from |
|
|
|
DF00030 |
(32-bit Floating point Accumulator) |
I |
|||
|
Long & Float |
DW00032-00098* |
(32-bit Integers, 32-bit Floating Point) |
||||||
|
M |
||||||||
|
|
||||||||
|
|
F.B. Work Register: |
DW00100-00320* |
(Bits, integers, floats as defined in Function Block) |
|||||
(Overwritten |
|
A |
|||||||
Local Constants. General purpose, read-only by the specifed Drawing |
Each hardware module on the rack has several configuration files. This data |
|
|||||||
|
*Default is 32 D-registers per drawing. R-click drawing in File Manager - increase to 320 when using Function Blocks. |
L |
|||||||
|
Reference: |
|
|
|
|
|
|
|
|
|
# ("Sharps") |
#W00000-16383 |
|
Module Configuration |
|
|
|||
Memory |
they are defined in. |
|
|
|
is stored in program memory. |
|
|
||
Set up via a table in the "properties" dialog box for each |
New project requires setting Module Configuration first. Select |
|
|||||||
drawing. Rarely Used |
|
|
from File Manager under Definition Folder" |
|
|||||
Program |
Drawings: |
H, L, A, I |
|
|
|
|
|
|
|
H (High Scan) |
Use for all code that runs motion related functions |
|
|
|
|||||
|
|
|
|
||||||
|
L (Low Scan) |
Use for code that runs HMI, or user operated switches, lights, etc |
|
|
|||||
|
A (Startup) |
Use for drawings that should automatically run once at controller power up. |
|
|
|||||
|
I (Interrupt) |
Use to run a special interrupt routine after receiving a local input defined as a dedicated "Interrupt." |
|
Page 2 of 14
MP2300 Quick Reference Guide Rev1.5
MP2300 Register Addressing
All registers except Input and Output : S, C, M, D, #, A |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||
Address |
|
F |
E |
D |
|
|
C |
B |
A |
9 |
8 |
|
|
7 |
6 |
5 |
|
|
|
4 |
3 |
2 |
|
1 |
0 |
|
|||||||||||||||||||||
MW2008 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ML2008 |
MW2009 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MW2010 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MF2010 |
MW2011 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
M B 2008 C i |
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Register Type |
|
|
|
|
Data Type |
|
|
|
|
|
Register |
|
|
|
Bit Number |
|
|
Subscript |
|
|
|
|||||||||||||||||||||||||
|
S: System |
|
|
|
|
|
|
B: Bit |
|
|
|
|
|
|
|
|
|
Number |
|
|
|
|
|
(Hex) |
|
|
|
(i or j) |
|
|
|
||||||||||||||||
|
C: Global Constant |
|
|
|
|
W: 16-bit Word |
|
|
(Decimal) |
|
If Bit Data Type |
|
|
optional |
|
|
|
||||||||||||||||||||||||||||||
|
M: Multi-Purpose User |
|
|
|
L: 32-bit Long |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
D: User Local |
|
|
|
|
|
|
F: 32-bit Float |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||
|
#: Local Constant |
|
|
|
|
A: Address |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||
|
A: Startup |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Input and Output Registers |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
Address |
F |
E |
D |
C |
B |
A |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
OW8018 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OW8019 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OW801A |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OL801A |
OW801B |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
O B 8019 A
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Register Type |
|
|
Data Type |
|
Register |
|
|
Bit Number |
|||||||||||
O: Output (Motion Setting) |
|
|
B: Bit |
|
Number |
|
|
(Hex) |
|||||||||||
I: Input (Motion Monitoring) |
|
|
W: 16-bit Word |
|
(Hex) |
|
|
If Bit Data Type |
|||||||||||
|
|
L: 32-bit Long |
|
|
|
||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||
|
|
|
|
F: 32-bit Float |
|
|
|
|
|
|
|
|
|
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Page 3 of 14
MP2300 Quick Reference Guide Rev1.5
LIO-01 / LIO-02
Register Allocation after Automatic Self-Configuration
Ref. Basic Module User's Manual (SIEPC88070003B) Section 6.5.3
|
|
LIO-0x #1 |
LIO-0x#2 |
|
|
LIO-0x #1 |
LIO-0x#2 |
Digital Inputs |
IW0410 |
IW0440 |
Digital Outputs |
OW0411 |
OW0441 |
||
(As 16-bit word) |
|
|
(As 16-bit Word) |
|
|
||
Input |
0 |
IB04100 |
IB04400 |
Output |
0 |
OB04110 |
OB04410 |
Input |
1 |
IB04101 |
IB04401 |
Output |
1 |
OB04111 |
OB04411 |
Input |
2 |
IB04102 |
IB04402 |
Output |
2 |
OB04112 |
OB04412 |
Input |
3 |
IB04103 |
IB04403 |
Output |
3 |
OB04113 |
OB04413 |
Input |
4 |
IB04104 |
IB04404 |
Output |
4 |
OB04114 |
OB04414 |
Input |
5 |
IB04105 |
IB04405 |
Output |
5 |
OB04115 |
OB04415 |
Input |
6 |
IB04106 |
IB04406 |
Output |
6 |
OB04116 |
OB04416 |
Input |
7 |
IB04107 |
IB04407 |
Output |
7 |
OB04117 |
OB04417 |
Input |
8 |
IB04108 |
IB04408 |
Output |
8 |
OB04118 |
OB04418 |
Input |
9 |
IB04109 |
IB04409 |
Output |
9 |
OB04119 |
OB04419 |
Input |
10 |
IB0410A |
IB0440A |
Output |
10 |
OB0411A |
OB0441A |
Input |
11 |
IB0410B |
IB0440B |
Output |
11 |
OB0411B |
OB0441B |
Input |
12 |
IB0410C |
IB0440C |
Output |
12 |
OB0411C |
OB0441C |
Input |
13 |
IB0410D |
IB0440D |
Output |
13 |
OB0411D |
OB0441D |
Input |
14 |
IB0410E |
IB0440E |
Output |
14 |
OB0411E |
OB0441E |
Input |
15 |
IB0410F |
IB0440F |
Output |
15 |
OB0411F |
OB0441F |
|
|
|
|
|
|
|
|
Counter |
|
IW0420 / OW0420 |
|
|
|
|
|
|
|
|
|
|
|
|
|
NOTE: There can be up to 2 LIO-0x modules in an MP2300 system. The first module to be auto-configured is the left-most module.
Page 4 of 14
MP2300 Quick Reference Guide Rev1.5
Basic Set of Registers for Register-Based Programming
Assume Module(Circuit) #1, Axis #1. Add 800h per circuit, 80h per axis.
Motion Setting Registers (OWxxxx)
Name |
Word |
Bit |
[Unit] / Note |
Reference |
Servo On |
OB8000 0 |
|
|
|
Alarm Clear |
OB8000 F |
|
|
|
Speed ("Feed" Speed) |
OL8010 |
|
[10^3 R.U./minute (by default)] |
|
|
Select Speed Units in OW8003.0-3 |
|
||
|
|
|
|
|
Motion Command Code |
OW8008 |
|
1=Position, 3=Home, 7=Jog, 8=Step |
|
Position Reference |
OL801C |
|
[R.U.] Default R.U. is encoder count |
|
Abs/Inc Position Mode |
OB8009 5 |
1=Abs, 0=Inc (default) |
|
|
Step Distance |
OL8004 |
|
[R.U.] Default R.U. is encoder count |
|
Direction (Step,Jog) |
OB8009 2 |
0=Fwd, 1=Rev |
|
|
Acceleration |
OL8036 |
|
[ms to rated speed (FP34)] |
|
|
Select Acceleration Units in OW8003.4-7 |
|
||
|
|
|
|
|
Deceleration |
OL8038 |
|
[ms to rated speed (FP34)] |
|
|
Select Deceleration Units in OW8003.4-7 |
|
||
|
|
|
|
|
Motion Monitoring Registers ( I Wxxxx) |
|
|||
Name |
Word |
Bit |
[Unit] / Note |
Reference |
Servo Alarm |
IL8004 |
|
=0 when no alarm. Each bit represents |
|
|
different alarm |
|
||
|
|
|
|
|
Servo Warning |
IL8002 |
|
=0 when no warning Each bit represents |
|
|
different warning |
|
||
|
|
|
|
|
Mtn Cmd Code confirm |
IW8008 |
|
|
|
Main Power On |
IB802C 4 |
|
|
|
Servo Ready |
IB8000 3 |
|
|
|
Servo On Confirm |
IB8000 |
1 |
|
|
IB802C |
3 |
|
|
|
|
|
|
||
|
|
|
|
|
Feedback Position |
IL8016 |
|
[counts or Reference Units] |
|
Feedback Speed |
IL8040 |
|
|
|
Positioning Complete |
IB800C 1 |
|
|
|
|
|
|
|
|
Terminology used on this page
"R.U.": Minimum increment of motion. By default 1 R.U. = 1 Count. Used fixed parameters to change. "Count": post-quadrature encoder count
"Pulse": pre-quadrature encoder pulse
Page 5 of 14