Indramat 3trm2

More
01 Sep 2021 04:04 #219306 by Sourabh3
Replied by Sourabh3 on topic Indramat 3trm2
so i again compiled the component and this is the result.

deckel@MAHO:~/linuxcnc/gearbox_sim$ sudo halcompile --install mh400e_gearbox.comp
[sudo] password for deckel:
make KBUILD_EXTRA_SYMBOLS=/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/Module.symvers -C /usr/src/linux-headers-3.4-9-rtai-686-pae SUBDIRS=`pwd` CC=gcc V=0 modules
make[1]: Entering directory `/usr/src/linux-headers-3.4-9-rtai-686-pae'
  CC [M]  /tmp/tmp0JXMWh/mh400e_gearbox.o
In file included from /home/deckel/linuxcnc/gearbox_sim/mh400e_util.h:94:0,
                 from mh400e_gearbox.comp:74:
/home/deckel/linuxcnc/gearbox_sim/mh400e_util.c: In function ‘tree_from_sorted_array’:
/home/deckel/linuxcnc/gearbox_sim/mh400e_util.c:87:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
In file included from /home/deckel/linuxcnc/gearbox_sim/mh400e_gears.h:63:0,
                 from mh400e_gearbox.comp:75:
/home/deckel/linuxcnc/gearbox_sim/mh400e_gears.c: In function ‘gearbox_setup’:
/home/deckel/linuxcnc/gearbox_sim/mh400e_gears.c:91:9: warning: missing braces around initializer [-Wmissing-braces]
/home/deckel/linuxcnc/gearbox_sim/mh400e_gears.c:91:9: warning: (near initialization for ‘(anonymous).p’) [-Wmissing-braces]
/home/deckel/linuxcnc/gearbox_sim/mh400e_gears.c:118:9: warning: missing braces around initializer [-Wmissing-braces]
/home/deckel/linuxcnc/gearbox_sim/mh400e_gears.c:118:9: warning: (near initialization for ‘(anonymous).p’) [-Wmissing-braces]
/home/deckel/linuxcnc/gearbox_sim/mh400e_gears.c:144:9: warning: missing braces around initializer [-Wmissing-braces]
/home/deckel/linuxcnc/gearbox_sim/mh400e_gears.c:144:9: warning: (near initialization for ‘(anonymous).p’) [-Wmissing-braces]
mh400e_gearbox.comp: In function ‘setup’:
mh400e_gearbox.comp:100:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
mh400e_gearbox.comp: In function ‘_’:
mh400e_gearbox.comp:184:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
mh400e_gearbox.comp:199:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/tmp0JXMWh/mh400e_gearbox.mod.o
  LD [M]  /tmp/tmp0JXMWh/mh400e_gearbox.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.4-9-rtai-686-pae'
cp mh400e_gearbox.ko /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/
deckel@MAHO:~/linuxcnc/gearbox_sim$ sudo halcompile --install mh400e_gearbox_sim.comp
make KBUILD_EXTRA_SYMBOLS=/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/Module.symvers -C /usr/src/linux-headers-3.4-9-rtai-686-pae SUBDIRS=`pwd` CC=gcc V=0 modules
make[1]: Entering directory `/usr/src/linux-headers-3.4-9-rtai-686-pae'
  CC [M]  /tmp/tmp9qfe8p/mh400e_gearbox_sim.o
In file included from /home/deckel/linuxcnc/gearbox_sim/mh400e_util.h:94:0,
                 from mh400e_gearbox_sim.comp:73:
/home/deckel/linuxcnc/gearbox_sim/mh400e_util.c: In function ‘tree_from_sorted_array’:
/home/deckel/linuxcnc/gearbox_sim/mh400e_util.c:87:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
mh400e_gearbox_sim.comp: In function ‘setup’:
mh400e_gearbox_sim.comp:114:9: warning: missing braces around initializer [-Wmissing-braces]
mh400e_gearbox_sim.comp:114:9: warning: (near initialization for ‘(anonymous).p’) [-Wmissing-braces]
mh400e_gearbox_sim.comp:122:9: warning: missing braces around initializer [-Wmissing-braces]
mh400e_gearbox_sim.comp:122:9: warning: (near initialization for ‘(anonymous).p’) [-Wmissing-braces]
mh400e_gearbox_sim.comp:130:9: warning: missing braces around initializer [-Wmissing-braces]
mh400e_gearbox_sim.comp:130:9: warning: (near initialization for ‘(anonymous).p’) [-Wmissing-braces]
mh400e_gearbox_sim.comp: At top level:
mh400e_gearbox_sim.comp:149:13: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
mh400e_gearbox_sim.comp: In function ‘reset_delay’:
mh400e_gearbox_sim.comp:162:44: warning: integer overflow in expression [-Woverflow]
mh400e_gearbox_sim.comp:169:46: warning: integer overflow in expression [-Woverflow]
In file included from /home/deckel/linuxcnc/gearbox_sim/mh400e_util.h:94:0,
                 from mh400e_gearbox_sim.comp:73:
mh400e_gearbox_sim.comp: At top level:
/home/deckel/linuxcnc/gearbox_sim/mh400e_util.c:76:21: warning: ‘tree_from_sorted_array’ defined but not used [-Wunused-function]
/home/deckel/linuxcnc/gearbox_sim/mh400e_util.c:162:21: warning: ‘tree_search’ defined but not used [-Wunused-function]
/home/deckel/linuxcnc/gearbox_sim/mh400e_util.c:181:13: warning: ‘sort_array_by_key’ defined but not used [-Wunused-function]
/home/deckel/linuxcnc/gearbox_sim/mh400e_util.c:196:16: warning: ‘select_gear_from_rpm’ defined but not used [-Wunused-function]
mh400e_gearbox_sim.comp:75:17: warning: ‘g_last_spindle_speed’ defined but not used [-Wunused-variable]
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/tmp9qfe8p/mh400e_gearbox_sim.mod.o
  LD [M]  /tmp/tmp9qfe8p/mh400e_gearbox_sim.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.4-9-rtai-686-pae'
cp mh400e_gearbox_sim.ko /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/
deckel@MAHO:~/linuxcnc/gearbox_sim$ source scripts/rip-environment
bash: scripts/rip-environment: No such file or directory
deckel@MAHO:~/linuxcnc/gearbox_sim$ source scripts/rip-environment
bash: scripts/rip-environment: No such file or directory
deckel@MAHO:~/linuxcnc/gearbox_sim$ clear

deckel@MAHO:~/linuxcnc/gearbox_sim$ sudo halcompile --install mh400e_gearbox.comp
[sudo] password for deckel:
make KBUILD_EXTRA_SYMBOLS=/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/Module.symvers -C /usr/src/linux-headers-3.4-9-rtai-686-pae SUBDIRS=`pwd` CC=gcc V=0 modules
make[1]: Entering directory `/usr/src/linux-headers-3.4-9-rtai-686-pae'
  CC [M]  /tmp/tmpJxWucb/mh400e_gearbox.o
In file included from /home/deckel/linuxcnc/gearbox_sim/mh400e_util.h:94:0,
                 from mh400e_gearbox.comp:74:
/home/deckel/linuxcnc/gearbox_sim/mh400e_util.c: In function ‘tree_from_sorted_array’:
/home/deckel/linuxcnc/gearbox_sim/mh400e_util.c:87:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
In file included from /home/deckel/linuxcnc/gearbox_sim/mh400e_gears.h:63:0,
                 from mh400e_gearbox.comp:75:
/home/deckel/linuxcnc/gearbox_sim/mh400e_gears.c: In function ‘gearbox_setup’:
/home/deckel/linuxcnc/gearbox_sim/mh400e_gears.c:91:9: warning: missing braces around initializer [-Wmissing-braces]
/home/deckel/linuxcnc/gearbox_sim/mh400e_gears.c:91:9: warning: (near initialization for ‘(anonymous).p’) [-Wmissing-braces]
/home/deckel/linuxcnc/gearbox_sim/mh400e_gears.c:118:9: warning: missing braces around initializer [-Wmissing-braces]
/home/deckel/linuxcnc/gearbox_sim/mh400e_gears.c:118:9: warning: (near initialization for ‘(anonymous).p’) [-Wmissing-braces]
/home/deckel/linuxcnc/gearbox_sim/mh400e_gears.c:144:9: warning: missing braces around initializer [-Wmissing-braces]
/home/deckel/linuxcnc/gearbox_sim/mh400e_gears.c:144:9: warning: (near initialization for ‘(anonymous).p’) [-Wmissing-braces]
mh400e_gearbox.comp: In function ‘setup’:
mh400e_gearbox.comp:100:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
mh400e_gearbox.comp: In function ‘_’:
mh400e_gearbox.comp:184:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
mh400e_gearbox.comp:199:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/tmpJxWucb/mh400e_gearbox.mod.o
  LD [M]  /tmp/tmpJxWucb/mh400e_gearbox.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.4-9-rtai-686-pae'
cp mh400e_gearbox.ko /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/
deckel@MAHO:~/linuxcnc/gearbox_sim$ sudo halcompile --install mh400e_gearbox_sim.comp
make KBUILD_EXTRA_SYMBOLS=/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/Module.symvers -C /usr/src/linux-headers-3.4-9-rtai-686-pae SUBDIRS=`pwd` CC=gcc V=0 modules
make[1]: Entering directory `/usr/src/linux-headers-3.4-9-rtai-686-pae'
  CC [M]  /tmp/tmpbDxiN8/mh400e_gearbox_sim.o
In file included from /home/deckel/linuxcnc/gearbox_sim/mh400e_util.h:94:0,
                 from mh400e_gearbox_sim.comp:73:
/home/deckel/linuxcnc/gearbox_sim/mh400e_util.c: In function ‘tree_from_sorted_array’:
/home/deckel/linuxcnc/gearbox_sim/mh400e_util.c:87:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
mh400e_gearbox_sim.comp: In function ‘setup’:
mh400e_gearbox_sim.comp:114:9: warning: missing braces around initializer [-Wmissing-braces]
mh400e_gearbox_sim.comp:114:9: warning: (near initialization for ‘(anonymous).p’) [-Wmissing-braces]
mh400e_gearbox_sim.comp:122:9: warning: missing braces around initializer [-Wmissing-braces]
mh400e_gearbox_sim.comp:122:9: warning: (near initialization for ‘(anonymous).p’) [-Wmissing-braces]
mh400e_gearbox_sim.comp:130:9: warning: missing braces around initializer [-Wmissing-braces]
mh400e_gearbox_sim.comp:130:9: warning: (near initialization for ‘(anonymous).p’) [-Wmissing-braces]
mh400e_gearbox_sim.comp: At top level:
mh400e_gearbox_sim.comp:149:13: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
mh400e_gearbox_sim.comp: In function ‘reset_delay’:
mh400e_gearbox_sim.comp:162:44: warning: integer overflow in expression [-Woverflow]
mh400e_gearbox_sim.comp:169:46: warning: integer overflow in expression [-Woverflow]
In file included from /home/deckel/linuxcnc/gearbox_sim/mh400e_util.h:94:0,
                 from mh400e_gearbox_sim.comp:73:
mh400e_gearbox_sim.comp: At top level:
/home/deckel/linuxcnc/gearbox_sim/mh400e_util.c:76:21: warning: ‘tree_from_sorted_array’ defined but not used [-Wunused-function]
/home/deckel/linuxcnc/gearbox_sim/mh400e_util.c:162:21: warning: ‘tree_search’ defined but not used [-Wunused-function]
/home/deckel/linuxcnc/gearbox_sim/mh400e_util.c:181:13: warning: ‘sort_array_by_key’ defined but not used [-Wunused-function]
/home/deckel/linuxcnc/gearbox_sim/mh400e_util.c:196:16: warning: ‘select_gear_from_rpm’ defined but not used [-Wunused-function]
mh400e_gearbox_sim.comp:75:17: warning: ‘g_last_spindle_speed’ defined but not used [-Wunused-variable]
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/tmpbDxiN8/mh400e_gearbox_sim.mod.o
  LD [M]  /tmp/tmpbDxiN8/mh400e_gearbox_sim.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.4-9-rtai-686-pae'
cp mh400e_gearbox_sim.ko /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/
deckel@MAHO:~/linuxcnc/gearbox_sim$

so, is there anything wrong?

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

More
01 Sep 2021 06:40 #219312 by Aciera
Replied by Aciera on topic Indramat 3trm2
Looks like only warnings but no errors. So maybe try loading the component in hal and see if it works.

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

More
01 Sep 2021 07:00 #219314 by Sourabh3
Replied by Sourabh3 on topic Indramat 3trm2
I loaded the component, the 19k1 relay( mahine ready) relay turns on. But i can't get any feedback from the switches when i release the e stop.

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

More
01 Sep 2021 09:33 #219320 by Aciera
Replied by Aciera on topic Indramat 3trm2
Have you checked whether the switches work in HAL Show?
The following user(s) said Thank You: RotarySMP, Sourabh3

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

More
01 Sep 2021 12:59 #219333 by Sourabh3
Replied by Sourabh3 on topic Indramat 3trm2
No, the hal show shows no change when i press any of the switches. I have power at points 200 and 202.and the switches are working and providing signal to relay board. How can i fix this? 

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

More
01 Sep 2021 13:24 #219335 by RotarySMP
Replied by RotarySMP on topic Indramat 3trm2
Do the HAL pins show up?
Mark

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

More
01 Sep 2021 13:28 #219336 by Sourabh3
Replied by Sourabh3 on topic Indramat 3trm2
They do show on hal configuration tab. I can see other estop, spindle stop pin states changing on 7i84. Just these switches aren't working. I tried giving them 24v from the board itself. But they don't change their states. 
Attachments:

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

More
01 Sep 2021 14:14 #219338 by RotarySMP
Replied by RotarySMP on topic Indramat 3trm2
Did you adapt the relay panel ribbon cable wiring for your machine? When I compare your wiring diagram to mine, the signals run through different terminals, and wires on the ribbon cables.

Mine...
https://camo.githubusercontent.com/da505bb6386effdead3dbd1728afaa775944e80b0353aeda0fc72dd6c87bf4ce/68747470733a2f2f666f72756d2e6c696e7578636e632e6f72672f6d656469612f6b756e656e612f6174746163686d656e74732f323931372f4d41484f3430304547656172626f78666565646261636b73776974636865732e676966
Yours:



So if we compare, the ribbon cable wire 28X2-11 on my 400E carries the signal "Backgear Left end stop", whereas on yours it carries the signal "Backgear Right end stop".

However, even if wired wrong, if you open the Hal Show second tab, to watch the state, at least the lines used by both our machine (28X2-11 through 28x2-18 should shange state when manual pushed, even if not the correct assignments.

On my Maho, these switches are on the terminal 200 24VDC bus, which is only powered when out of E-Stop, so you will need to be latched on to do this testing.

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

More
01 Sep 2021 14:20 #219340 by RotarySMP
Replied by RotarySMP on topic Indramat 3trm2
Weird, the forum parses that link to display the image in the edit mode, but not once uploaded.

This is my config.

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

More
01 Sep 2021 14:30 #219342 by Sourabh3
Replied by Sourabh3 on topic Indramat 3trm2
I changed the wire terminals and this is now exactly the same as yours. I checked and confirmed the terminals via multimeter. And my 200 is wired out of estop loop right now and is powered up directly via the main smps(4.5amp). 7i84 and 7i77 both are powered via this smps.Also i tried giving 24v directly to TB2-2 estop input. Still couldn't get anything.

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

Moderators: PCWjmelson
Time to create page: 0.146 seconds
Powered by Kunena Forum