Starting Sysmac Studio...............................................................................................................2-2
Creating a New Project ...............................................................................................................2-2
Setting the Built-in EtherNet/IP Port............................................................................................2-3
Controller Setup ..........................................................................................................................2-3
2-2 DB Connection Settings........................................................................................................2-5
DB Connection Service Settings .................................................................................................2-5
DB Connection Settings ..............................................................................................................2-7
Programming the DB Connection Function
3-1 DB Access Procedure ...........................................................................................................3-2
3-2 Creating a Structure Data Type ............................................................................................3-3
Overview .....................................................................................................................................3-3
Specifications of Structure Data Type for DB Access .................................................................3-3
How to Create a Structure Data Type for DB Access ...............................................................3-13
3-3 Creating a DB Map Variable ................................................................................................3-16
DB Map Variables and DB Mapping..........................................................................................3-16
Registration and Attributes of DB Map Variables ......................................................................3-17
Restrictions on DB Map Variables.............................................................................................3-18
3-4 Specifying the Table and Applying the Mapping ..............................................................3-19
DB Mapping by Executing a Create DB Map Instruction ..........................................................3-19
Clearing the Mapping of DB Map Variables ..............................................................................3-19
Restrictions on DB Mapping......................................................................................................3-19
3-5 Programming and Transfer .................................................................................................3-23
Programming the DB Connection Service ................................................................................3-23
Displaying DB Connection Instructions on Sysmac Studio .......................................................3-24
DB Connection Instruction Set ..................................................................................................3-24
System-defined Variables..........................................................................................................3-25
Simulation Debugging of DB Connection Instructions ..............................................................3-26
Transferring the DB Connection Settings and User Program ...................................................3-27
3-6 Debugging in Design, Startup, and Operation Phases ....................................................3-28
Design Phase............................................................................................................................3-28
Startup Phase ...........................................................................................................................3-28
Operation Phase .......................................................................................................................3-28
Basic Operations and Status Check
4-1 Run Mode of DB Connection Service and Start/Stop Procedures ....................................4-2
Run Mode of the DB Connection Service ...................................................................................4-2
How to Start/Stop the DB Connection Service............................................................................4-2
DB Connection Service is Stopped or Cannot be Started...........................................................4-4
Changing the Run Mode of the DB Connection Service .............................................................4-5
4-2 Establishing/Closing a DB Connection ...............................................................................4-6
4-3 Checking the Status of DB Connection Service and each DB Connection......................4-7
Operation Status of the DB Connection Service .........................................................................4-7
Checking the Status of the DB Connection Service....................................................................4-8
Connection Status of each DB Connection...............................................................................4-10
Checking the Status of each DB Connection ............................................................................ 4-11
5-2 Spool Function.......................................................................................................................5-5
Overview .....................................................................................................................................5-5
CONTENTS
9
NJ/NX-series Database Connection CPU Units User’s Manual (W527)