Sample Ladder Logic LD Program: Basic Motion (Power, Home, Cycle)

Sample Ladder Logic LD Program: Basic Motion (Power, Home, Cycle)

Here's a simple sample Ladder Logic (LD) program. It starts when the PLC application starts. It enables the motor (MC_Power), homes the axis (MC_Home), and then extends and retracts repeatedly with a time delay after each move. Select the project that matches your version of Parker Automation Manager:

PAM1.4: Motion_LD_PAM1.4

PAM1.2: Motion_LD_PAM1.2

Here's a video of it running within the PAC320 IDE software: MOBILE USERS CLICK HERE

 

Here's a screen capture of the program online and the visualization:

motion_ld_sim_5202-20240521-001114.jpg

 

 

motion_ld_sim_visu_5203-20240521-001114.jpg

 

NOTE: a PAC320 hardware controller isn't necessary to run this. See below for details.

For PAM 1.4 Users: When PAM is open, click "Online" at the top of the screen -> check "Simulation". Now Login (alt+F8). From here, PAM will run the project within a simulated environment.

For PAM 1.3 Users: You can use an application with a CODESYS SoftMotion Win V3. This is launched from Start > All Programs > Parker Hannifin > Parker Automation Manager > CODESYS SoftMotion Win V3
Under Online > Simulation. Then you can after Build (F11), click Online > Login. This will create a virtual PLC and allow you to run PLC simulation (Play or F5).

Note the CODESYS SoftMotion Win V3 will launch a DOS window allowing simulation of motion and will run for two hours before disabling. This window can be minimized but motion simulation is disabled when this window is closed.

codesys_softmotion_winv3_3489-20240521-001114.jpg

 

3/15jh

30OCT18 JD