I/O ClassicLadder

More
12 Jul 2012 15:05 - 12 Jul 2012 15:12 #21830 by Linux-Hus
I/O ClassicLadder was created by Linux-Hus
Hello,
the I/O to the classicladder is this %I0,1,2,3 .... and %Q1,2,3,..... ?
The connections are established in the hal file, costum_postgui.hal or the motenc_io.hal?

expl: Toolchanging.

The G code is M06 T1 (T1=tool1)
CNCprogram is driving and emc have the M06 T1 code

Is M06 "tool-changin" in the hal ?

this is in the costum_postgui.hal:

net toolchanging => classicladder.0.in-00 (%I0)


is this right?
Last edit: 12 Jul 2012 15:12 by Linux-Hus.

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

More
12 Jul 2012 15:20 #21831 by BigJohnT
Replied by BigJohnT on topic Re:I/O ClassicLadder
HAL connections that depend on the GUI to be loaded to expose the pins to HAL have to be made in the postgui file.

John

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

More
12 Jul 2012 15:33 #21832 by Linux-Hus
Replied by Linux-Hus on topic Re:I/O ClassicLadder
The connection to classisladder, is this established in the motenc-io.hal ?

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

More
12 Jul 2012 15:42 #21833 by Linux-Hus
Replied by Linux-Hus on topic Re:I/O ClassicLadder
Have you one expl. connection to classicladder, as it should be keep in the hal.

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

More
12 Jul 2012 17:03 #21836 by BigJohnT
Replied by BigJohnT on topic Re:I/O ClassicLadder
Classicladder is loaded with the GUI so you must make your net connections in what ever file is listed in the INI file for POSTGUI_HALFILE = in the [HAL] section. This is typical a file with postgui in the name but can be anything.

I don't have a clue what the montec_io.hal file is...

John

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

More
13 Jul 2012 09:27 #21865 by Linux-Hus
Replied by Linux-Hus on topic Re:I/O ClassicLadder
Hello
this is my costum_postgui.hal

net revolver motenc.0.out-14 <= pyvcp.revolver
net sol12 motenc.0.out-09 <= pyvcp.sol12
net rev-led1 motenc.0.in-20 => pyvcp.rev-led1
net rev-led2 motenc.0.in-21 => pyvcp.rev-led2
net rev-led3 motenc.0.in-22 => pyvcp.rev-led3

net sol1 motenc.0.out-08 <= pyvcp.sol1
net sol2 motenc.0.out-13 <= pyvcp.sol2
net sol3 motenc.0.out-10 <= pyvcp.sol3

net kont1 motenc.0.in-24-not => pyvcp.kont1
net kont2 motenc.0.in-25-not => pyvcp.kont2
net kont3 motenc.0.in-26-not => pyvcp.kont3
net kont4 motenc.0.in-27-not => pyvcp.kont4

net tool-change => classicladder.0.in-00
net tool-change => classicladder.0.out-00


"tool-change" is this the M06 in the Gcode?

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

More
13 Jul 2012 10:13 - 13 Jul 2012 10:57 #21867 by Linux-Hus
Replied by Linux-Hus on topic Re:I/O ClassicLadder
Here an example:

"motenc_io.hal"

net tool-change <= iocontrol.0.tool-change

"coustum_postgui.hal"

net tool-change iocontrol.0.tool-change => classicladder.0.in-00
net tool-change classicladder.0.out-00 => motenc.0.out-14

The ladder is config. %I0 NO to %Q0 NO

Its not working!!!!!

Is the tool-change = M06 in the Gcode?

please help me,

Steffen
Attachments:
Last edit: 13 Jul 2012 10:57 by Linux-Hus.

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

More
13 Jul 2012 11:19 #21869 by BigJohnT
Replied by BigJohnT on topic Re:I/O ClassicLadder
M6 initiates a tool change.

I'm having difficulty understanding your problem, perhaps an example config with a tool changer can help. Take a look at my CHNC Config files and see if you can understand how the tool change works.

Looks like I misinformed you about classicladder and having to be in the postgui file.

This is my code for the tool changer in my hardinge.hal which is my main hal file.
# Tool Turret Encoder Setup
net turret-encoder1 wsum.0.bit.0.in <= hm2_5i20.0.gpio.063.in_not
net turret-encoder2 wsum.0.bit.1.in <= hm2_5i20.0.gpio.061.in_not
net turret-encoder4 wsum.0.bit.2.in <= hm2_5i20.0.gpio.059.in_not
net turret-encoder8 wsum.0.bit.3.in <= hm2_5i20.0.gpio.057.in_not

# Tool Turret tool change, leave the tool prep loop in as there is no prep needed
net tool-prep-loop iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
#net tool-change-loop iocontrol.0.tool-change => iocontrol.0.tool-changed
net tool-cng-req iocontrol.0.tool-change => classicladder.0.in-01
net tool-cn-done iocontrol.0.tool-changed <= classicladder.0.out-01
net tool-number iocontrol.0.tool-number => classicladder.0.s32in-00
net tool-prep-number iocontrol.0.tool-prep-number => classicladder.0.s32in-01
net tur-stop hm2_5i20.0.gpio.069.out <= classicladder.0.out-02
net tur-lift-spin hm2_5i20.0.gpio.066.out <= classicladder.0.out-03
net tur-locked hm2_5i20.0.gpio.033.in_not => classicladder.0.in-02
net enc-tool-number wsum.0.sum => classicladder.0.s32in-02
net tool-cng-timeout classicladder.0.out-04 => halui.program.stop

You can download my clp file and view the ladder logic I used for my tool changer.

John

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

More
13 Jul 2012 12:19 - 13 Jul 2012 12:20 #21872 by Linux-Hus
Replied by Linux-Hus on topic Re:I/O ClassicLadder
This is an simple connection

in the motenc_io.hal:

net toolchange iocontrol.0.tool-change => classicladder.0.in-00
net toolchangeout classicladder.0.out-00 => motenc.0.out-14

in the ladder is : %I0 N.O. >>> %Q0 N.O.

i have no signal in the ladder on %I0
Attachments:
Last edit: 13 Jul 2012 12:20 by Linux-Hus.

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

More
13 Jul 2012 12:35 - 13 Jul 2012 12:36 #21873 by BigJohnT
Replied by BigJohnT on topic Re:I/O ClassicLadder
Did you addf classicladder.0.refresh servo-thread?

Add a rung to your ladder with a N/C input %B0 and a N/O output of %B1. If that does not show up in red then you don't have classicladder running in a thread.

John
Last edit: 13 Jul 2012 12:36 by BigJohnT.

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

Time to create page: 0.097 seconds
Powered by Kunena Forum