
12
3-2 Parts of the Sysmac Studio Window................................................................37
3-2-1 Screen for Configurations and Setup ................................................37
3-2-2 Screen for Programming....................................................................37
3-3 Assigning Variables to Terminals.....................................................................38
3-3-1 Variable Names for Terminal Numbers.............................................38
3-3-2 I/O Map Setting..................................................................................39
3-3-3 Checking Wiring.................................................................................41
3-4 Ladder Programming........................................................................................42
3-4-1 Inserting Circuit Parts ........................................................................42
3-4-2 Keyboard Mapping.............................................................................42
3-4-3 Rules..................................................................................................43
3-5 Example of a Basic Ladder Program................................................................44
3-5-1 Practice of Programming a Ladder Diagram.....................................44
3-5-2 Writing the Algorithm .........................................................................45
3-5-3 Program Check..................................................................................47
3-5-4 Saving the Program...........................................................................48
3-5-5 Checking Operation on the NX1P .....................................................49
3-5-6 Checking Operation on the Simulator................................................50
3-5-7 Example of a Program Error (Offline)................................................52
3-5-8 Example of an Error Occurred During Operation ..............................52
3-6 Example of a Ladder Program Using a Timer Instruction................................53
3-6-1 Self-holding Rung..............................................................................53
3-6-2 On-Delay Timer (TON) Instruction.....................................................54
3-6-3 Exercise: Energy Saving Escalator ...................................................58
3-6-4 Checking the Operation of the Program............................................59
3-6-5 Checking the Operation of the Program (Watch Tab Page)..............60
3-7 Example of a Ladder Program Using Date and Time......................................62
3-7-1 Programming the NX1P Using Date and Time..................................62
3-7-2 Exercise: Continuous Operating Time of Escalator...........................62
3-8 Fundamentals of Programming to Reduce Development Time.......................66
3-8-1 POUs (Program Organization Units) .................................................66
3-8-2 Programs and Execution Priorities (Tasks).......................................66
3-8-3 Functions (FUNs) and Function Blocks (FBs)...................................68
3-8-4 Sections.............................................................................................69
3-8-5 Types of Variables.............................................................................70
4Creating Programs to Handle Data..........................................73
4-1 Variables Used for Data Processing ................................................................74
4-1-1 Arrays.................................................................................................74
4-2 Programming Exercise .....................................................................................75
4-2-1 Application Example..........................................................................75
4-2-2 Programming .....................................................................................75
4-2-3 Creating a Project..............................................................................76
4-2-4 Configuring Analog Option Board Settings........................................77
4-2-5 Assigning Variables to the Option Board and Input Terminal............77
4-2-6 Program Example..............................................................................78