ClassicLadder and StepConfig

More
13 Feb 2015 00:02 #55926 by hurco
Hi,
I've run StepConfig, created a new configuration, base information, port 1 setup and options with include ClassicLadder PLC with blank ladder and run the edit ladder program.

In the ladder editor I layed out a simple timer. Everything works left to right, inputs and outputs flash on and off as I think they should. I clicked Save As and saved in the custom,clp file in my linuxCnc directory.

From reading the intregators manual It seems I need to link things together after running StepConfig and ClassicLadder.

How, where and which files?

Thanks

Please Log in or Create an account to join the conversation.

More
13 Feb 2015 00:21 #55928 by ArcEye
Replied by ArcEye on topic ClassicLadder and StepConfig
Hi

I can give some basic help

Because you used stepconf, you already have the userspace classic ladder module loaded which runs your clp file
# Load Classicladder without GUI (can reload LADDER GUI in AXIS GUI
loadusr classicladder --nogui custom.clp

Open File > Ladder Editor in Axis to get the GUI

The second of these links covers that bit in detail, may be easiest to try one of the examples rather than jumping straight in to your
use for it, to get the hang of it, just get it to turn on a pyvcp led or something.

www.linuxcnc.org/docs/devel/html/ladder/ladder_intro.html
www.linuxcnc.org/docs/devel/html/ladder/classic_ladder.html
www.linuxcnc.org/docs/devel/html/ladder/ladder_examples.html

regards
The following user(s) said Thank You: hurco

Please Log in or Create an account to join the conversation.

More
13 Feb 2015 01:01 #55929 by hurco
Replied by hurco on topic ClassicLadder and StepConfig
Thanks ArcEye!

Fired up the ladder editor in Axis, created a timer ladder and saved it.
I've set up a watch in Hal Configuration in Axis and classicladder.0.out-00 now blinks on and off as I'd hoped. Now I need to link this to paraport pin-16-out

Thanks

Please Log in or Create an account to join the conversation.

More
13 Feb 2015 01:11 #55931 by BigJohnT
This is a good place to start reading when your hand editing you HAL files.

linuxcnc.org/docs/html/hal/basic_hal.html

JT
The following user(s) said Thank You: hurco

Please Log in or Create an account to join the conversation.

More
13 Feb 2015 02:12 #55935 by hurco
Replied by hurco on topic ClassicLadder and StepConfig
Using the Hal Tutorial I think I'm seeing my way through.
I'm using Hal Configure watch window to monitor my ClassicLadder outputs, paraport pins.

Using the "Test Hal Command protyping area :
I'm getting: Pin 'parport.0.pin-16-out' was already linked to signal 'dout-00' error. When I try to assign my ladder timer output to lpt1 pin 16. This looks like I need to return to stepconfig and unassign paraport.0 pin 16 from the dout-00 signal.

Please Log in or Create an account to join the conversation.

More
13 Feb 2015 02:34 #55937 by ArcEye
Replied by ArcEye on topic ClassicLadder and StepConfig

This looks like I need to return to stepconfig and unassign paraport.0 pin 16 from the dout-00 signal.


Just find the line in the hal file and comment it out with a # at the start of the line.

You probably didn't ask for the signal to be linked to that pin and I am not sure it will show up

regards

Please Log in or Create an account to join the conversation.

Time to create page: 0.189 seconds
Powered by Kunena Forum