11-7
11 Example of Actual Application Procedures
NJ-series CPU Unit Software User’s Manual (W501)
11-2 Overview of the Example Procedure
11
11-2-4 Programming with the Sysmac Studio
• Set the Input Device and Output Device parameters to the EtherCAT slaves that you registered
in the slave configuration.
Set the other parameters, such as the Unit Conversion Settings and Operation Settings.
Initial Settings for the PLC Function Module:
The Controller Setup includes the Startup Mode and other parameters.
Initial Settings for Special Units:
Unit Configuration and Setup: Set the initial settings of the Analog Input Unit.
On the Sysmac Studio, create the programs, set the tasks, and build the project.
1
Right-click Programs under Programming
POU and select Add
Ladder or Add
ST from
the menu.
2
Double-click Section under the program that you registered.
3
Register the local variables for each program.
4
Enter the programs.
Create a program with the following instructions.
• Homing: MC_Home instruction
• Velocity control: MC_MoveVelocity instruction
• Interrupt feeding: MC_MoveFeed instruction
• Positioning: MC_Move instruction
5
As required, right-click Functions or Function Blocks under Programming
POU and select
Add
Ladder or Add
ST from the menu.
Double-click the function or function block that you registered. Register local variables for each
function and function block. Create the algorithms.
Set the Controller Setup and the Special Unit Setup.
11-2-4 Programming with the Sysmac Studio
Write the Programs.