On Thu, 23 Jul 2009, Howard Chan wrote:
Date: Thu, 23 Jul 2009 22:07:56 +0800
From: Howard Chan <[email protected]>
Reply-To: "Enhanced Machine Controller (EMC)"
<[email protected]>
To: "Enhanced Machine Controller (EMC)" <[email protected]>
Subject: [Emc-users] hm2-servo configure the output pin
Dear All,
There is a problem when using I/O functions in the hm2-servo configure.
There is no output after I configured the input function. Take “Spindle
function” as an example. I have added the following code to open the
spindle, there is no any response in the output pin. However, when I use
the hml_meter to check the signals, “SpindleFwd” and
“hm2_m5i20.0.gpio.070.out” can be changed to ‘TRUE’. Here is the code:
newsig SpindleFwd bit
linksp SpindleFwd => hm2_[HOSTMOT2](BOARD).0.gpio.070.out
linksp SpindleFwd <= motion.spindle-forward
newsig SpindleRev bit
linksp SpindleRev => hm2_[HOSTMOT2](BOARD).0.gpio.071.out
linksp SpindleRev <= motion.spindle-reverse
When I modify the ‘m5i20’ drive configure to activate the spindle
function. There is a response in the output signal.
newsig SpindleFwd bit
newsig SpindleRev bit
linksp SpindleFwd => m5i20.0.out-14
linksp SpindleFwd <= motion.spindle-forward
linksp SpindleRev => m5i20.0.out-15
linksp SpindleRev <= motion.spindle-reverse
I do not what happen on it. Have anyone can help me? Thanks in advance!
Best regards,
Howard
Have you set hm2_5i20.0.gpio.070.is_output and hm2_5i20.0.gpio.071.is_output
true?
Unlike m5I20, HostMot2 firmware makes no assumptions about which GPIO pins are
inputs and which are outputs, so all GPIO bits start up as inputs until
explicitly set to output mode.
Peter Wallace
Mesa Electronics
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.
------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users