Assembling Classicladder

More
22 Jun 2021 01:47 #212631 by Ingo
Guys, I have a question about Ladder. I'm using the 7i76 + 7i84 boards, I'm programming and I used all the I/O from the 7i76 and almost all from the 7i84, my question is: do I make two classicladder one for each board? Or do I only do one and how do I make the identification in the HAL file? What is the correct procedure to do this?

Thank you very much

Ingo

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

More
22 Jun 2021 02:49 #212634 by cmorley
Replied by cmorley on topic Assembling Classicladder
There can only be one instance of classicladder.
I don't understand the problem you are trying to work around.
Can you describe the problem more?

Chris

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

More
22 Jun 2021 05:34 #212638 by Ingo
Replied by Ingo on topic Assembling Classicladder
Hi Chris,

I'm still learning about LinuxCNC and it's the first time I've used two boards, sorry if it's so obvious…, but I needed a daughter board because I have a lot of I/O. I want to know how do I point the I/O on the 7i84. Because for example it has the same number “names” inputs and outputs of the two boards, how do I differentiate the same pin on the classicladder? Example an input in-05 on board 7i76 and I have the same input in-05 on 7i84. Will I make the logic in the ladder of the I/O related to the daughter board as I write it in ClassicLadder and in HAL so there is no conflict?

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

More
22 Jun 2021 08:57 #212655 by tommylight
Replied by tommylight on topic Assembling Classicladder
# --- MACHINE-IS-ENABLED ---
net machine-is-enabled hm2_7i92.0.7i77.0.0.output-02
net Carousel-up     hm2_7i92.0.7i71.1.4.output-20
net Carousel-is-up     hm2_7i92.0.7i70.1.5.input-00
Notice the different addresses after the card numbers, 7i77 has an address of 0.0., 7i71 is at 1.4. and 7i70 is at 1.5. .
The same goes for 7i84, wire it, power it on, open LinuxCNC and use the "Show hal configuration" from the "machine" menu to see the address and pin names.

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

More
22 Jun 2021 11:21 - 22 Jun 2021 11:22 #212661 by BigJohnT
Replied by BigJohnT on topic Assembling Classicladder
With your configuration running open a terminal and issue the following command.
halcmd show pin > pins.txt

The > is redirect and will send the output from the command to the text file so you can copy and paste pin names easy. You can also get the signals and parameters in the same way with
halcmd show sig > signals.txt
halcmd show param > parameters.txt

JT
Last edit: 22 Jun 2021 11:22 by BigJohnT.

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

More
22 Jun 2021 11:40 - 22 Jun 2021 11:47 #212666 by bevins
Replied by bevins on topic Assembling Classicladder
Classicladder can be configured from different boards no problem. It distinguishes the difference from the pins.

Something like this:
net arm-up classicladder.0.in-00 hm2_7i92.0.7i76.0.0.input-01
net arm-down  classicladder.0.in-01 hm2_7i92.0.7i84.1.2.input-01

Check the actual pins like BigJohnT showed you.
Last edit: 22 Jun 2021 11:47 by bevins.

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

More
22 Jun 2021 21:58 #212702 by Ingo
Replied by Ingo on topic Assembling Classicladder
So, today I was doing Hal according to the tips you gave me, I've attached it for you to see what you think, but I had some problems. First the number of I/O in the classicladder was insufficient, I added I80 and Q48, but I found it very strange when I open the classicladder in symbol it only shows maximum I47 and Q31 why is it? There is also a problem regarding “Torre_CW” and “Torre_CCW” on the 7i84 daughter board, both in Oct-03 and Oct-04, as well as in In-11 and In-12.
Attachments:

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

More
22 Jun 2021 23:16 #212705 by BigJohnT
Replied by BigJohnT on topic Assembling Classicladder
You might have exceeded the default number of variables. You need to load more in your hal file loadrt line.

linuxcnc.org/docs/2.8/html/ladder/classi...dder.html#_variables

JT

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

More
23 Jun 2021 20:15 #212764 by Ingo
Replied by Ingo on topic Assembling Classicladder
Hello JT,

I loaded 80 in the inputs (numPhysInputs=80) in the Hal file plus maximum accepted is 50, the problem is that I have more inputs than that (52) and they are insufficient…. I read the link you gave me I went to Pncconf and edited it in the ladder the same thing. Do you have any idea?
Attachments:

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

More
23 Jun 2021 20:39 #212765 by Aciera
Replied by Aciera on topic Assembling Classicladder
I also have more than 50 inputs and even more outputs in classic ladder. If I remember correctly it's the graphical variable interface in Classicladder (the one in your screen shot) that somehow doesn't show all the available inputs and outputs. I had to add the %Ixx and the %Qxx in the .clp file directly (ie. the variable names) then you can use those in your ladder schematics. But I think you have to type the names you defined in the .clp manually as they don't show up in the variable browser in the gui.
So the signals do work but you cannot see them in the list in the gui.

Warning: Spoiler!

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

Time to create page: 0.100 seconds
Powered by Kunena Forum