Stepperonline A6 Ethercat - Digital IO [SOLVED]

More
5 months 1 week ago #346634 by rodw
To test output , connect one output to your coolant in hal and see if it triggers.

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

More
5 months 1 week ago #346635 by rodw
oops should be
Code:
<pdoEntry idx="60FD" subIdx="1" bitLen="32" halType="complex">

Also
<pdoEntry idx="60FD" subIdx="2" bitLen="32" halType="complex"> seems like it will control whether the IO is enabled or not
The following user(s) said Thank You: spumco

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

More
5 months 1 week ago #346639 by spumco
<pdoEntry idx="60FD" subIdx="2" bitLen="32" halType="complex">

does control the enable - or at least whatever that line in the object dictionary refers to.

I have no problem sending values to the drive, and can change the value by changing the bits and 'padding' in xml file.

What I don't know is which bit(s) - what value - the drive requires to turn the outputs on.  As I mentioned earlier I've mapped bits 1 & 2 to both sub-index 1 and sub-index 2 and turned both 'on.'  Tried the same thing for bits 16 & 17.

I guess I could just brute-force it and try ALL the 32 bits for botrh sub-indexes.

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

More
5 months 1 week ago #346643 by spumco
I found the following in the generic xml file from the Stepperonline site:
Warning: Spoiler!


I tried changing sub-index 1 to bit 4, and that sent a value of '16' to the drive.
Also changed sub-index 2 to bits 4&5, resulting in two HAL pins.  When I turned both of those on the drive reported "48" in the 'Enable Physical Output' field.

No output turned on.

Maybe there's some way to interpret this to figure out what the values are?

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

More
5 months 1 week ago #346649 by rodw
Normally, I would connect the drive up in a hal file to linuxcnc with the cia402 composnent at this time and it would display all the pins by the name used in the XML and use halshow to play. Remember the pins need to be changed to general I/O somewhere and are probably active low so a light or relay is between the output and ground (0 volt)

Usually the I/O's have an indicator light beside them so if you enable an output it should change state.

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

More
5 months 1 week ago #346651 by spumco
The drive is connected to LCNC - that's how I've been triggering the inputs and attempting to trigger the outputs.

The drive is hooked up to SSRs and I've got LED's driven by the outputs.  If I force the outputs via the tuning software the LED's light up.  So test hardware is functioning as expected.

Simply renaming the vendor-supplied xml file doesn't work - it's incompatible with lcec_conf.

The xml file I'm using works for the inputs, and the address for the digital outputs is correct - otherwise I wouldn't be seeing the digital outputs line in the tuning software parameters monitor change.

What I need is the bit value, or more likely a combination of bit values, which the drive requires to trigger the outputs.  I was hoping someone could interpret the vendor-supplied xml file snippet and explain it to me.

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

Time to create page: 0.260 seconds
Powered by Kunena Forum