Setting up 5i25+7i85+8i20

More
12 years 11 months ago #41265 by andypugh
Replied by andypugh on topic Setting up 5i25+7i85+8i20

stes wrote: I'm using Sanyo Denki P5 1kw. Would it be easiest to detect the phase by powering one of the phases at start up?
This motor has hall effect sensors also.


Using Hall sensors is the best way to get the motor initialised. This is the test script I use to set up a motor
Code:
loadrt hostmot2 loadrt hm2_pci config="sserial_port_0=00000000" loadrt threads name1=thread1 period1=500000 loadrt bldc cfg=h addf hm2_5i25.0.read thread1 addf bldc.0 thread1 addf hm2_5i25.0.write thread1 addf hm2_5i25.0.pet_watchdog thread1 net h1 hm2_5i25.0.7i76.0.0.input-00 bldc.0.hall1 net h2 hm2_5i25.0.7i76.0.0.input-01 bldc.0.hall2 net h3 hm2_5i25.0.7i76.0.0.input-02 bldc.0.hall3 net ang bldc.0.rotor-angle hm2_5i25.0.8i20.0.1.angle setp bldc.0.pattern 34 start
Save that in a file somewhere called 8i20.hal. Then edit it to suit your hardware (you won't have any "7i76" pins with a 7i85, for example)
Then start a HAL session and load the script:
Code:
halrun source 8i20.hal
Now open a some halmeters to check the hall inputs
Code:
loadusr halmeter signal h1 loadusr halmeter signal h2 loadusr halmeter signal h3
and check that the halls twiddle as you manually rotate the motor.
Now you can apply a small current to the motor and see if it spins. It probably won't as there is only a 1 in 42 chance that "34" was the correct hall pattern.
Code:
setp hm2_5i25.0.8i20.0.1.current 0.5
The motor might kick, it might buzz. It might even spin.
Now try all the hall patterns and see which one works best.
Code:
setp bldc.0.pattern 0 setp bldc.0.pattern 1 ... setp bldc.0.pattern 42
Make a note of which ones spin the motor best. You will probably find two that work well, but which spin the motor in different directions. Choose one, that is your hall pattern. A further test that it is a good pattern is to try it at higher and lower currents, and make sure that it will reverse the motor properly.
Code:
setp setp hm2_5i25.0.8i20.0.1.current 0.5 setp hm2_5i25.0.8i20.0.1.current 1 setp hm2_5i25.0.8i20.0.1.current -1 setp hm2_5i25.0.8i20.0.1.current 0.1
and so on.

Running your motors like this will work, but isn't ideal. This is trapezoidal commutation, and it is noisy and less efficient. The next stage is to switch the "bldc" component to "qh" mode, where it uses trapezoidal commutation to start, then uses the quadrature encoder for sinusoidal commutation after the first Hall transition.
So, exit halcmd, and edit the 8i20.hal file:
Code:
loadrt hostmot2 loadrt hm2_pci config="sserial_port_0=00000000" loadrt threads name1=thread1 period1=500000 loadrt bldc cfg=qh net rawcounts bldc.0.rawcounts hm2_5i25.0.encoder.00.rawcounts [color=#ff0000]setp bldc.0.poles 4 setp bldc.0.scale 4000[/color] addf hm2_5i25.0.read thread1 addf bldc.0 thread1 addf hm2_5i25.0.write thread1 addf hm2_5i25.0.pet_watchdog thread1 net h1 hm2_5i25.0.7i76.0.0.input-00 bldc.0.hall1 net h2 hm2_5i25.0.7i76.0.0.input-01 bldc.0.hall2 net h3 hm2_5i25.0.7i76.0.0.input-02 bldc.0.hall3 net ang bldc.0.rotor-angle hm2_5i25.0.8i20.0.1.angle [color=#ff0000]setp bldc.0.pattern 34[/color] start

The lines in red need to be set to suit your hardware. Note that there is a 50:50 chance that the bldc scale will have to be negative.

Now you should find that the motor runs smoothly under speed and direction current commands, and you can integrate the bldc and 8i20 HAL into your machine HAL configuration.

One troubleshooting tip. At the halcmd: prompt
Code:
show all *8i20*
will show you the 8i20 status, if it isn't working then there should be a clue as to why not in there, such as undervoltage, or enable not set, or whatever.
The following user(s) said Thank You: blazini36

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

More
12 years 11 months ago #41266 by andypugh
Replied by andypugh on topic Setting up 5i25+7i85+8i20
I forgot the link to the bldc docs:

www.linuxcnc.org/docs/html/man/man9/bldc.9.html

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

More
9 years 1 month ago #98727 by stes
Replied by stes on topic Setting up 5i25+7i85+8i20
I'm back to my project. I made the 8i20.hal file, but when I try to source it I get this message "Could not open hal file '8i20.hal': No such file or directory"

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

More
9 years 1 month ago #98753 by andypugh
Replied by andypugh on topic Setting up 5i25+7i85+8i20
I guess that is a file path problem. You could try an absolute path from root. eg
/Users/yourname/linuxcnc/configs/the-file

(That's a guess, I am on a Mac right now and can't actually recall the Linux user paths. could be "Homes" for example)

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

More
9 years 1 month ago #98763 by stes
Replied by stes on topic Setting up 5i25+7i85+8i20
Pins.
Code:
Component Pins: Owner Type Dir Value Name 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-00 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-00-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-01 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-01-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-02 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-02-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-03 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-03-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-04 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-04-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-05 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-05-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-06 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-06-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-07 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-07-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-08 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-08-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-09 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-09-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-10 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-10-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-11 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-11-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-12 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-12-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-13 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-13-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-14 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-14-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-15 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-15-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-16 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-16-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-17 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-17-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-18 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-18-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-19 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-19-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-20 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-20-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-21 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-21-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-22 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-22-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-23 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-23-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-24 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-24-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-25 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-25-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-26 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-26-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-27 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-27-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-28 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-28-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-29 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-29-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-30 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-30-not 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-31 5 bit OUT FALSE hm2_5i25.0.7i84.0.3.input-31-not 5 bit IN FALSE hm2_5i25.0.7i84.0.3.output-00 5 bit IN FALSE hm2_5i25.0.7i84.0.3.output-01 5 bit IN FALSE hm2_5i25.0.7i84.0.3.output-02 5 bit IN FALSE hm2_5i25.0.7i84.0.3.output-03 5 bit IN FALSE hm2_5i25.0.7i84.0.3.output-04 5 bit IN FALSE hm2_5i25.0.7i84.0.3.output-05 5 bit IN FALSE hm2_5i25.0.7i84.0.3.output-06 5 bit IN FALSE hm2_5i25.0.7i84.0.3.output-07 5 bit IN FALSE hm2_5i25.0.7i84.0.3.output-08 5 bit IN FALSE hm2_5i25.0.7i84.0.3.output-09 5 bit IN FALSE hm2_5i25.0.7i84.0.3.output-10 5 bit IN FALSE hm2_5i25.0.7i84.0.3.output-11 5 bit IN FALSE hm2_5i25.0.7i84.0.3.output-12 5 bit IN FALSE hm2_5i25.0.7i84.0.3.output-13 5 bit IN FALSE hm2_5i25.0.7i84.0.3.output-14 5 bit IN FALSE hm2_5i25.0.7i84.0.3.output-15 5 float IN 0 hm2_5i25.0.8i20.0.0.angle 5 float OUT 0 hm2_5i25.0.8i20.0.0.bus-voltage 5 float OUT 0 hm2_5i25.0.8i20.0.0.card-temp 5 float IN 0 hm2_5i25.0.8i20.0.0.current 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.U-current 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.U-current-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.V-current 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.V-current-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.W-current 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.W-current-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.bus-high 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.bus-high-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.bus-overv 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.bus-overv-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.bus-underv 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.bus-underv-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.framingr 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.framingr-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.module 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.module-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.no-enable 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.no-enable-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.overcurrent 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.overcurrent-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.overrun 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.overrun-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.overtemp 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.overtemp-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.watchdog 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.fault.watchdog-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.status.brake-old 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.status.brake-old-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.status.brake-on 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.status.brake-on-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.status.bus-underv 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.status.bus-underv-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.status.current-lim 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.status.current-lim-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.status.ext-reset 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.status.ext-reset-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.status.no-enable 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.status.no-enable-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.status.pid-on 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.status.pid-on-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.status.sw-reset 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.status.sw-reset-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.status.wd-reset 5 bit OUT FALSE hm2_5i25.0.8i20.0.0.status.wd-reset-not 5 float IN 0 hm2_5i25.0.8i20.0.1.angle 5 float OUT 0 hm2_5i25.0.8i20.0.1.bus-voltage 5 float OUT 0 hm2_5i25.0.8i20.0.1.card-temp 5 float IN 0 hm2_5i25.0.8i20.0.1.current 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.U-current 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.U-current-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.V-current 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.V-current-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.W-current 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.W-current-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.bus-high 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.bus-high-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.bus-overv 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.bus-overv-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.bus-underv 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.bus-underv-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.framingr 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.framingr-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.module 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.module-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.no-enable 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.no-enable-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.overcurrent 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.overcurrent-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.overrun 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.overrun-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.overtemp 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.overtemp-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.watchdog 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.fault.watchdog-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.status.brake-old 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.status.brake-old-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.status.brake-on 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.status.brake-on-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.status.bus-underv 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.status.bus-underv-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.status.current-lim 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.status.current-lim-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.status.ext-reset 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.status.ext-reset-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.status.no-enable 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.status.no-enable-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.status.pid-on 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.status.pid-on-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.status.sw-reset 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.status.sw-reset-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.status.wd-reset 5 bit OUT FALSE hm2_5i25.0.8i20.0.1.status.wd-reset-not 5 float IN 0 hm2_5i25.0.8i20.0.2.angle 5 float OUT 0 hm2_5i25.0.8i20.0.2.bus-voltage 5 float OUT 0 hm2_5i25.0.8i20.0.2.card-temp 5 float IN 0 hm2_5i25.0.8i20.0.2.current 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.U-current 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.U-current-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.V-current 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.V-current-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.W-current 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.W-current-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.bus-high 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.bus-high-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.bus-overv 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.bus-overv-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.bus-underv 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.bus-underv-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.framingr 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.framingr-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.module 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.module-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.no-enable 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.no-enable-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.overcurrent 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.overcurrent-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.overrun 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.overrun-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.overtemp 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.overtemp-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.watchdog 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.fault.watchdog-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.status.brake-old 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.status.brake-old-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.status.brake-on 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.status.brake-on-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.status.bus-underv 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.status.bus-underv-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.status.current-lim 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.status.current-lim-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.status.ext-reset 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.status.ext-reset-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.status.no-enable 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.status.no-enable-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.status.pid-on 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.status.pid-on-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.status.sw-reset 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.status.sw-reset-not 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.status.wd-reset 5 bit OUT FALSE hm2_5i25.0.8i20.0.2.status.wd-reset-not 5 s32 OUT 0 hm2_5i25.0.encoder.00.count 5 s32 OUT 0 hm2_5i25.0.encoder.00.count-latched 5 bit I/O FALSE hm2_5i25.0.encoder.00.index-enable 5 bit OUT FALSE hm2_5i25.0.encoder.00.input-a 5 bit OUT TRUE hm2_5i25.0.encoder.00.input-b 5 bit OUT FALSE hm2_5i25.0.encoder.00.input-index 5 bit IN FALSE hm2_5i25.0.encoder.00.latch-enable 5 bit IN FALSE hm2_5i25.0.encoder.00.latch-polarity 5 float OUT 0 hm2_5i25.0.encoder.00.position 5 float OUT 0 hm2_5i25.0.encoder.00.position-latched 5 bit OUT FALSE hm2_5i25.0.encoder.00.quad-error 5 bit IN FALSE hm2_5i25.0.encoder.00.quad-error-enable 5 s32 OUT 65535 hm2_5i25.0.encoder.00.rawcounts 5 s32 OUT 65535 hm2_5i25.0.encoder.00.rawlatch 5 bit IN FALSE hm2_5i25.0.encoder.00.reset 5 float OUT 0 hm2_5i25.0.encoder.00.velocity 5 s32 OUT 0 hm2_5i25.0.encoder.01.count 5 s32 OUT 0 hm2_5i25.0.encoder.01.count-latched 5 bit I/O FALSE hm2_5i25.0.encoder.01.index-enable 5 bit OUT FALSE hm2_5i25.0.encoder.01.input-a 5 bit OUT FALSE hm2_5i25.0.encoder.01.input-b 5 bit OUT TRUE hm2_5i25.0.encoder.01.input-index 5 bit IN FALSE hm2_5i25.0.encoder.01.latch-enable 5 bit IN FALSE hm2_5i25.0.encoder.01.latch-polarity 5 float OUT 0 hm2_5i25.0.encoder.01.position 5 float OUT 0 hm2_5i25.0.encoder.01.position-latched 5 bit OUT FALSE hm2_5i25.0.encoder.01.quad-error 5 bit IN FALSE hm2_5i25.0.encoder.01.quad-error-enable 5 s32 OUT 0 hm2_5i25.0.encoder.01.rawcounts 5 s32 OUT 0 hm2_5i25.0.encoder.01.rawlatch 5 bit IN FALSE hm2_5i25.0.encoder.01.reset 5 float OUT 0 hm2_5i25.0.encoder.01.velocity 5 s32 OUT 0 hm2_5i25.0.encoder.02.count 5 s32 OUT 0 hm2_5i25.0.encoder.02.count-latched 5 bit I/O FALSE hm2_5i25.0.encoder.02.index-enable 5 bit OUT TRUE hm2_5i25.0.encoder.02.input-a 5 bit OUT FALSE hm2_5i25.0.encoder.02.input-b 5 bit OUT FALSE hm2_5i25.0.encoder.02.input-index 5 bit IN FALSE hm2_5i25.0.encoder.02.latch-enable 5 bit IN FALSE hm2_5i25.0.encoder.02.latch-polarity 5 float OUT 0 hm2_5i25.0.encoder.02.position 5 float OUT 0 hm2_5i25.0.encoder.02.position-latched 5 bit OUT FALSE hm2_5i25.0.encoder.02.quad-error 5 bit IN FALSE hm2_5i25.0.encoder.02.quad-error-enable 5 s32 OUT 1 hm2_5i25.0.encoder.02.rawcounts 5 s32 OUT 1 hm2_5i25.0.encoder.02.rawlatch 5 bit IN FALSE hm2_5i25.0.encoder.02.reset 5 float OUT 0 hm2_5i25.0.encoder.02.velocity 5 s32 OUT 0 hm2_5i25.0.encoder.03.count 5 s32 OUT 0 hm2_5i25.0.encoder.03.count-latched 5 bit I/O FALSE hm2_5i25.0.encoder.03.index-enable 5 bit OUT FALSE hm2_5i25.0.encoder.03.input-a 5 bit OUT FALSE hm2_5i25.0.encoder.03.input-b 5 bit OUT TRUE hm2_5i25.0.encoder.03.input-index 5 bit IN FALSE hm2_5i25.0.encoder.03.latch-enable 5 bit IN FALSE hm2_5i25.0.encoder.03.latch-polarity 5 float OUT 0 hm2_5i25.0.encoder.03.position 5 float OUT 0 hm2_5i25.0.encoder.03.position-latched 5 bit OUT FALSE hm2_5i25.0.encoder.03.quad-error 5 bit IN FALSE hm2_5i25.0.encoder.03.quad-error-enable 5 s32 OUT 0 hm2_5i25.0.encoder.03.rawcounts 5 s32 OUT 0 hm2_5i25.0.encoder.03.rawlatch 5 bit IN FALSE hm2_5i25.0.encoder.03.reset 5 float OUT 0 hm2_5i25.0.encoder.03.velocity 5 s32 OUT 0 hm2_5i25.0.encoder.04.count 5 s32 OUT 0 hm2_5i25.0.encoder.04.count-latched 5 bit I/O FALSE hm2_5i25.0.encoder.04.index-enable 5 bit OUT TRUE hm2_5i25.0.encoder.04.input-a 5 bit OUT TRUE hm2_5i25.0.encoder.04.input-b 5 bit OUT FALSE hm2_5i25.0.encoder.04.input-index 5 bit IN FALSE hm2_5i25.0.encoder.04.latch-enable 5 bit IN FALSE hm2_5i25.0.encoder.04.latch-polarity 5 float OUT 0 hm2_5i25.0.encoder.04.position 5 float OUT 0 hm2_5i25.0.encoder.04.position-latched 5 bit OUT FALSE hm2_5i25.0.encoder.04.quad-error 5 bit IN FALSE hm2_5i25.0.encoder.04.quad-error-enable 5 s32 OUT 0 hm2_5i25.0.encoder.04.rawcounts 5 s32 OUT 0 hm2_5i25.0.encoder.04.rawlatch 5 bit IN FALSE hm2_5i25.0.encoder.04.reset 5 float OUT 0 hm2_5i25.0.encoder.04.velocity 5 s32 OUT 0 hm2_5i25.0.encoder.05.count 5 s32 OUT 0 hm2_5i25.0.encoder.05.count-latched 5 bit I/O FALSE hm2_5i25.0.encoder.05.index-enable 5 bit OUT TRUE hm2_5i25.0.encoder.05.input-a 5 bit OUT TRUE hm2_5i25.0.encoder.05.input-b 5 bit OUT FALSE hm2_5i25.0.encoder.05.input-index 5 bit IN FALSE hm2_5i25.0.encoder.05.latch-enable 5 bit IN FALSE hm2_5i25.0.encoder.05.latch-polarity 5 float OUT 0 hm2_5i25.0.encoder.05.position 5 float OUT 0 hm2_5i25.0.encoder.05.position-latched 5 bit OUT FALSE hm2_5i25.0.encoder.05.quad-error 5 bit IN FALSE hm2_5i25.0.encoder.05.quad-error-enable 5 s32 OUT 0 hm2_5i25.0.encoder.05.rawcounts 5 s32 OUT 0 hm2_5i25.0.encoder.05.rawlatch 5 bit IN FALSE hm2_5i25.0.encoder.05.reset 5 float OUT 0 hm2_5i25.0.encoder.05.velocity 5 s32 OUT 0 hm2_5i25.0.encoder.06.count 5 s32 OUT 0 hm2_5i25.0.encoder.06.count-latched 5 bit I/O FALSE hm2_5i25.0.encoder.06.index-enable 5 bit OUT TRUE hm2_5i25.0.encoder.06.input-a 5 bit OUT TRUE hm2_5i25.0.encoder.06.input-b 5 bit OUT FALSE hm2_5i25.0.encoder.06.input-index 5 bit IN FALSE hm2_5i25.0.encoder.06.latch-enable 5 bit IN FALSE hm2_5i25.0.encoder.06.latch-polarity 5 float OUT 0 hm2_5i25.0.encoder.06.position 5 float OUT 0 hm2_5i25.0.encoder.06.position-latched 5 bit OUT FALSE hm2_5i25.0.encoder.06.quad-error 5 bit IN FALSE hm2_5i25.0.encoder.06.quad-error-enable 5 s32 OUT 0 hm2_5i25.0.encoder.06.rawcounts 5 s32 OUT 0 hm2_5i25.0.encoder.06.rawlatch 5 bit IN FALSE hm2_5i25.0.encoder.06.reset 5 float OUT 0 hm2_5i25.0.encoder.06.velocity 5 s32 OUT 0 hm2_5i25.0.encoder.07.count 5 s32 OUT 0 hm2_5i25.0.encoder.07.count-latched 5 bit I/O FALSE hm2_5i25.0.encoder.07.index-enable 5 bit OUT TRUE hm2_5i25.0.encoder.07.input-a 5 bit OUT TRUE hm2_5i25.0.encoder.07.input-b 5 bit OUT FALSE hm2_5i25.0.encoder.07.input-index 5 bit IN FALSE hm2_5i25.0.encoder.07.latch-enable 5 bit IN FALSE hm2_5i25.0.encoder.07.latch-polarity 5 float OUT 0 hm2_5i25.0.encoder.07.position 5 float OUT 0 hm2_5i25.0.encoder.07.position-latched 5 bit OUT FALSE hm2_5i25.0.encoder.07.quad-error 5 bit IN FALSE hm2_5i25.0.encoder.07.quad-error-enable 5 s32 OUT 0 hm2_5i25.0.encoder.07.rawcounts 5 s32 OUT 0 hm2_5i25.0.encoder.07.rawlatch 5 bit IN FALSE hm2_5i25.0.encoder.07.reset 5 float OUT 0 hm2_5i25.0.encoder.07.velocity 5 u32 IN 0x007F2815 hm2_5i25.0.encoder.muxed-sample-frequency 5 bit OUT TRUE hm2_5i25.0.gpio.000.in 5 bit OUT FALSE hm2_5i25.0.gpio.000.in_not 5 bit IN FALSE hm2_5i25.0.gpio.000.out 5 bit OUT TRUE hm2_5i25.0.gpio.001.in 5 bit OUT FALSE hm2_5i25.0.gpio.001.in_not 5 bit IN FALSE hm2_5i25.0.gpio.001.out 5 bit OUT TRUE hm2_5i25.0.gpio.002.in 5 bit OUT FALSE hm2_5i25.0.gpio.002.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.003.in 5 bit OUT FALSE hm2_5i25.0.gpio.003.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.004.in 5 bit OUT FALSE hm2_5i25.0.gpio.004.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.005.in 5 bit OUT FALSE hm2_5i25.0.gpio.005.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.006.in 5 bit OUT FALSE hm2_5i25.0.gpio.006.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.007.in 5 bit OUT FALSE hm2_5i25.0.gpio.007.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.008.in 5 bit OUT FALSE hm2_5i25.0.gpio.008.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.009.in 5 bit OUT FALSE hm2_5i25.0.gpio.009.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.010.in 5 bit OUT FALSE hm2_5i25.0.gpio.010.in_not 5 bit OUT FALSE hm2_5i25.0.gpio.011.in 5 bit OUT TRUE hm2_5i25.0.gpio.011.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.012.in 5 bit OUT FALSE hm2_5i25.0.gpio.012.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.013.in 5 bit OUT FALSE hm2_5i25.0.gpio.013.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.014.in 5 bit OUT FALSE hm2_5i25.0.gpio.014.in_not 5 bit OUT FALSE hm2_5i25.0.gpio.015.in 5 bit OUT TRUE hm2_5i25.0.gpio.015.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.016.in 5 bit OUT FALSE hm2_5i25.0.gpio.016.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.017.in 5 bit OUT FALSE hm2_5i25.0.gpio.017.in_not 5 bit IN FALSE hm2_5i25.0.gpio.017.out 5 bit OUT TRUE hm2_5i25.0.gpio.018.in 5 bit OUT FALSE hm2_5i25.0.gpio.018.in_not 5 bit IN FALSE hm2_5i25.0.gpio.018.out 5 bit OUT TRUE hm2_5i25.0.gpio.019.in 5 bit OUT FALSE hm2_5i25.0.gpio.019.in_not 5 bit IN FALSE hm2_5i25.0.gpio.019.out 5 bit OUT TRUE hm2_5i25.0.gpio.020.in 5 bit OUT FALSE hm2_5i25.0.gpio.020.in_not 5 bit IN FALSE hm2_5i25.0.gpio.020.out 5 bit OUT TRUE hm2_5i25.0.gpio.021.in 5 bit OUT FALSE hm2_5i25.0.gpio.021.in_not 5 bit IN FALSE hm2_5i25.0.gpio.021.out 5 bit OUT TRUE hm2_5i25.0.gpio.022.in 5 bit OUT FALSE hm2_5i25.0.gpio.022.in_not 5 bit IN FALSE hm2_5i25.0.gpio.022.out 5 bit OUT TRUE hm2_5i25.0.gpio.023.in 5 bit OUT FALSE hm2_5i25.0.gpio.023.in_not 5 bit IN FALSE hm2_5i25.0.gpio.023.out 5 bit OUT TRUE hm2_5i25.0.gpio.024.in 5 bit OUT FALSE hm2_5i25.0.gpio.024.in_not 5 bit IN FALSE hm2_5i25.0.gpio.024.out 5 bit OUT TRUE hm2_5i25.0.gpio.025.in 5 bit OUT FALSE hm2_5i25.0.gpio.025.in_not 5 bit IN FALSE hm2_5i25.0.gpio.025.out 5 bit OUT TRUE hm2_5i25.0.gpio.026.in 5 bit OUT FALSE hm2_5i25.0.gpio.026.in_not 5 bit IN FALSE hm2_5i25.0.gpio.026.out 5 bit OUT FALSE hm2_5i25.0.gpio.027.in 5 bit OUT TRUE hm2_5i25.0.gpio.027.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.028.in 5 bit OUT FALSE hm2_5i25.0.gpio.028.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.029.in 5 bit OUT FALSE hm2_5i25.0.gpio.029.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.030.in 5 bit OUT FALSE hm2_5i25.0.gpio.030.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.031.in 5 bit OUT FALSE hm2_5i25.0.gpio.031.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.032.in 5 bit OUT FALSE hm2_5i25.0.gpio.032.in_not 5 bit OUT TRUE hm2_5i25.0.gpio.033.in 5 bit OUT FALSE hm2_5i25.0.gpio.033.in_not 5 bit IN FALSE hm2_5i25.0.led.CR01 5 bit IN FALSE hm2_5i25.0.led.CR02 5 s32 OUT 0 hm2_5i25.0.read.time 5 s32 OUT 0 hm2_5i25.0.read_gpio.time 5 u32 OUT 0x00000000 hm2_5i25.0.sserial.port-0.fault-count 5 u32 OUT 0x00000000 hm2_5i25.0.sserial.port-0.port_state 5 bit IN TRUE hm2_5i25.0.sserial.port-0.run 5 bit I/O FALSE hm2_5i25.0.watchdog.has_bit 5 s32 OUT 0 hm2_5i25.0.write.time 5 s32 OUT 0 hm2_5i25.0.write_gpio.time

param.
Code:
Parameters: Owner Type Dir Value Name 5 u32 RO 0x00000009 hm2_5i25.0.7i84.0.3.nvbaudrate 5 u32 RO 0x00000000 hm2_5i25.0.7i84.0.3.nvencmode0 5 u32 RO 0x00000000 hm2_5i25.0.7i84.0.3.nvencmode1 5 u32 RO 0x01800082 hm2_5i25.0.7i84.0.3.nvunitnumber 5 u32 RO 0x00000032 hm2_5i25.0.7i84.0.3.nvwatchdogtimeout 5 bit RW FALSE hm2_5i25.0.7i84.0.3.output-00-invert 5 bit RW FALSE hm2_5i25.0.7i84.0.3.output-01-invert 5 bit RW FALSE hm2_5i25.0.7i84.0.3.output-02-invert 5 bit RW FALSE hm2_5i25.0.7i84.0.3.output-03-invert 5 bit RW FALSE hm2_5i25.0.7i84.0.3.output-04-invert 5 bit RW FALSE hm2_5i25.0.7i84.0.3.output-05-invert 5 bit RW FALSE hm2_5i25.0.7i84.0.3.output-06-invert 5 bit RW FALSE hm2_5i25.0.7i84.0.3.output-07-invert 5 bit RW FALSE hm2_5i25.0.7i84.0.3.output-08-invert 5 bit RW FALSE hm2_5i25.0.7i84.0.3.output-09-invert 5 bit RW FALSE hm2_5i25.0.7i84.0.3.output-10-invert 5 bit RW FALSE hm2_5i25.0.7i84.0.3.output-11-invert 5 bit RW FALSE hm2_5i25.0.7i84.0.3.output-12-invert 5 bit RW FALSE hm2_5i25.0.7i84.0.3.output-13-invert 5 bit RW FALSE hm2_5i25.0.7i84.0.3.output-14-invert 5 bit RW FALSE hm2_5i25.0.7i84.0.3.output-15-invert 5 u32 RO 0x0000000E hm2_5i25.0.7i84.0.3.swrevision 5 float RW 1 hm2_5i25.0.8i20.0.0.angle-maxlim 5 float RW 0 hm2_5i25.0.8i20.0.0.angle-minlim 5 float RW 1 hm2_5i25.0.8i20.0.0.angle-scalemax 5 float RW 655.35 hm2_5i25.0.8i20.0.0.bus-voltage-scalemax 5 float RW 65535 hm2_5i25.0.8i20.0.0.card-temp-scalemax 5 float RW 7.5 hm2_5i25.0.8i20.0.0.current-maxlim 5 float RW -7.5 hm2_5i25.0.8i20.0.0.current-minlim 5 float RW 7.5 hm2_5i25.0.8i20.0.0.current-scalemax 5 u32 RO 0x000088B8 hm2_5i25.0.8i20.0.0.nvbrakeoffv 5 u32 RO 0x00009088 hm2_5i25.0.8i20.0.0.nvbrakeonv 5 u32 RO 0x00009664 hm2_5i25.0.8i20.0.0.nvbusoverv 5 u32 RO 0x00001194 hm2_5i25.0.8i20.0.0.nvbusundervmax 5 u32 RO 0x00000DAC hm2_5i25.0.8i20.0.0.nvbusundervmin 5 u32 RO 0x00000000 hm2_5i25.0.8i20.0.0.nvkdihi 5 u32 RO 0x00007D00 hm2_5i25.0.8i20.0.0.nvkdil 5 u32 RO 0x0000C350 hm2_5i25.0.8i20.0.0.nvkdilo 5 u32 RO 0x00000032 hm2_5i25.0.8i20.0.0.nvkdp 5 u32 RO 0x00000000 hm2_5i25.0.8i20.0.0.nvkqihi 5 u32 RO 0x00007D00 hm2_5i25.0.8i20.0.0.nvkqil 5 u32 RO 0x0000C350 hm2_5i25.0.8i20.0.0.nvkqilo 5 u32 RO 0x00000032 hm2_5i25.0.8i20.0.0.nvkqp 5 u32 RO 0x000002EE hm2_5i25.0.8i20.0.0.nvmaxcurrent 5 u32 RO 0x00000009 hm2_5i25.0.8i20.0.0.nvrembaudrate 5 u32 RO 0x0000008B hm2_5i25.0.8i20.0.0.swrevision 5 u32 RO 0x0A000074 hm2_5i25.0.8i20.0.0.unitnumber 5 float RW 1 hm2_5i25.0.8i20.0.1.angle-maxlim 5 float RW 0 hm2_5i25.0.8i20.0.1.angle-minlim 5 float RW 1 hm2_5i25.0.8i20.0.1.angle-scalemax 5 float RW 655.35 hm2_5i25.0.8i20.0.1.bus-voltage-scalemax 5 float RW 65535 hm2_5i25.0.8i20.0.1.card-temp-scalemax 5 float RW 7.5 hm2_5i25.0.8i20.0.1.current-maxlim 5 float RW -7.5 hm2_5i25.0.8i20.0.1.current-minlim 5 float RW 7.5 hm2_5i25.0.8i20.0.1.current-scalemax 5 u32 RO 0x000088B8 hm2_5i25.0.8i20.0.1.nvbrakeoffv 5 u32 RO 0x00009088 hm2_5i25.0.8i20.0.1.nvbrakeonv 5 u32 RO 0x00009664 hm2_5i25.0.8i20.0.1.nvbusoverv 5 u32 RO 0x00001194 hm2_5i25.0.8i20.0.1.nvbusundervmax 5 u32 RO 0x00000DAC hm2_5i25.0.8i20.0.1.nvbusundervmin 5 u32 RO 0x00000000 hm2_5i25.0.8i20.0.1.nvkdihi 5 u32 RO 0x00007D00 hm2_5i25.0.8i20.0.1.nvkdil 5 u32 RO 0x0000C350 hm2_5i25.0.8i20.0.1.nvkdilo 5 u32 RO 0x00000032 hm2_5i25.0.8i20.0.1.nvkdp 5 u32 RO 0x00000000 hm2_5i25.0.8i20.0.1.nvkqihi 5 u32 RO 0x00007D00 hm2_5i25.0.8i20.0.1.nvkqil 5 u32 RO 0x0000C350 hm2_5i25.0.8i20.0.1.nvkqilo 5 u32 RO 0x00000032 hm2_5i25.0.8i20.0.1.nvkqp 5 u32 RO 0x000002EE hm2_5i25.0.8i20.0.1.nvmaxcurrent 5 u32 RO 0x00000009 hm2_5i25.0.8i20.0.1.nvrembaudrate 5 u32 RO 0x0000008B hm2_5i25.0.8i20.0.1.swrevision 5 u32 RO 0x0A000067 hm2_5i25.0.8i20.0.1.unitnumber 5 float RW 1 hm2_5i25.0.8i20.0.2.angle-maxlim 5 float RW 0 hm2_5i25.0.8i20.0.2.angle-minlim 5 float RW 1 hm2_5i25.0.8i20.0.2.angle-scalemax 5 float RW 655.35 hm2_5i25.0.8i20.0.2.bus-voltage-scalemax 5 float RW 65535 hm2_5i25.0.8i20.0.2.card-temp-scalemax 5 float RW 7.5 hm2_5i25.0.8i20.0.2.current-maxlim 5 float RW -7.5 hm2_5i25.0.8i20.0.2.current-minlim 5 float RW 7.5 hm2_5i25.0.8i20.0.2.current-scalemax 5 u32 RO 0x000088B8 hm2_5i25.0.8i20.0.2.nvbrakeoffv 5 u32 RO 0x00009088 hm2_5i25.0.8i20.0.2.nvbrakeonv 5 u32 RO 0x00009664 hm2_5i25.0.8i20.0.2.nvbusoverv 5 u32 RO 0x00001194 hm2_5i25.0.8i20.0.2.nvbusundervmax 5 u32 RO 0x00000DAC hm2_5i25.0.8i20.0.2.nvbusundervmin 5 u32 RO 0x00000000 hm2_5i25.0.8i20.0.2.nvkdihi 5 u32 RO 0x00007D00 hm2_5i25.0.8i20.0.2.nvkdil 5 u32 RO 0x0000C350 hm2_5i25.0.8i20.0.2.nvkdilo 5 u32 RO 0x00000032 hm2_5i25.0.8i20.0.2.nvkdp 5 u32 RO 0x00000000 hm2_5i25.0.8i20.0.2.nvkqihi 5 u32 RO 0x00007D00 hm2_5i25.0.8i20.0.2.nvkqil 5 u32 RO 0x0000C350 hm2_5i25.0.8i20.0.2.nvkqilo 5 u32 RO 0x00000032 hm2_5i25.0.8i20.0.2.nvkqp 5 u32 RO 0x000002EE hm2_5i25.0.8i20.0.2.nvmaxcurrent 5 u32 RO 0x00000009 hm2_5i25.0.8i20.0.2.nvrembaudrate 5 u32 RO 0x0000008B hm2_5i25.0.8i20.0.2.swrevision 5 u32 RO 0x0A000066 hm2_5i25.0.8i20.0.2.unitnumber 5 bit RW FALSE hm2_5i25.0.encoder.00.counter-mode 5 bit RW TRUE hm2_5i25.0.encoder.00.filter 5 bit RW FALSE hm2_5i25.0.encoder.00.index-invert 5 bit RW FALSE hm2_5i25.0.encoder.00.index-mask 5 bit RW FALSE hm2_5i25.0.encoder.00.index-mask-invert 5 float RW 1 hm2_5i25.0.encoder.00.scale 5 float RW 0.5 hm2_5i25.0.encoder.00.vel-timeout 5 bit RW FALSE hm2_5i25.0.encoder.01.counter-mode 5 bit RW TRUE hm2_5i25.0.encoder.01.filter 5 bit RW FALSE hm2_5i25.0.encoder.01.index-invert 5 bit RW FALSE hm2_5i25.0.encoder.01.index-mask 5 bit RW FALSE hm2_5i25.0.encoder.01.index-mask-invert 5 float RW 1 hm2_5i25.0.encoder.01.scale 5 float RW 0.5 hm2_5i25.0.encoder.01.vel-timeout 5 bit RW FALSE hm2_5i25.0.encoder.02.counter-mode 5 bit RW TRUE hm2_5i25.0.encoder.02.filter 5 bit RW FALSE hm2_5i25.0.encoder.02.index-invert 5 bit RW FALSE hm2_5i25.0.encoder.02.index-mask 5 bit RW FALSE hm2_5i25.0.encoder.02.index-mask-invert 5 float RW 1 hm2_5i25.0.encoder.02.scale 5 float RW 0.5 hm2_5i25.0.encoder.02.vel-timeout 5 bit RW FALSE hm2_5i25.0.encoder.03.counter-mode 5 bit RW TRUE hm2_5i25.0.encoder.03.filter 5 bit RW FALSE hm2_5i25.0.encoder.03.index-invert 5 bit RW FALSE hm2_5i25.0.encoder.03.index-mask 5 bit RW FALSE hm2_5i25.0.encoder.03.index-mask-invert 5 float RW 1 hm2_5i25.0.encoder.03.scale 5 float RW 0.5 hm2_5i25.0.encoder.03.vel-timeout 5 bit RW FALSE hm2_5i25.0.encoder.04.counter-mode 5 bit RW TRUE hm2_5i25.0.encoder.04.filter 5 bit RW FALSE hm2_5i25.0.encoder.04.index-invert 5 bit RW FALSE hm2_5i25.0.encoder.04.index-mask 5 bit RW FALSE hm2_5i25.0.encoder.04.index-mask-invert 5 float RW 1 hm2_5i25.0.encoder.04.scale 5 float RW 0.5 hm2_5i25.0.encoder.04.vel-timeout 5 bit RW FALSE hm2_5i25.0.encoder.05.counter-mode 5 bit RW TRUE hm2_5i25.0.encoder.05.filter 5 bit RW FALSE hm2_5i25.0.encoder.05.index-invert 5 bit RW FALSE hm2_5i25.0.encoder.05.index-mask 5 bit RW FALSE hm2_5i25.0.encoder.05.index-mask-invert 5 float RW 1 hm2_5i25.0.encoder.05.scale 5 float RW 0.5 hm2_5i25.0.encoder.05.vel-timeout 5 bit RW FALSE hm2_5i25.0.encoder.06.counter-mode 5 bit RW TRUE hm2_5i25.0.encoder.06.filter 5 bit RW FALSE hm2_5i25.0.encoder.06.index-invert 5 bit RW FALSE hm2_5i25.0.encoder.06.index-mask 5 bit RW FALSE hm2_5i25.0.encoder.06.index-mask-invert 5 float RW 1 hm2_5i25.0.encoder.06.scale 5 float RW 0.5 hm2_5i25.0.encoder.06.vel-timeout 5 bit RW FALSE hm2_5i25.0.encoder.07.counter-mode 5 bit RW TRUE hm2_5i25.0.encoder.07.filter 5 bit RW FALSE hm2_5i25.0.encoder.07.index-invert 5 bit RW FALSE hm2_5i25.0.encoder.07.index-mask 5 bit RW FALSE hm2_5i25.0.encoder.07.index-mask-invert 5 float RW 1 hm2_5i25.0.encoder.07.scale 5 float RW 0.5 hm2_5i25.0.encoder.07.vel-timeout 5 bit RW FALSE hm2_5i25.0.gpio.000.invert_output 5 bit RW FALSE hm2_5i25.0.gpio.000.is_opendrain 5 bit RW FALSE hm2_5i25.0.gpio.000.is_output 5 bit RW FALSE hm2_5i25.0.gpio.001.invert_output 5 bit RW FALSE hm2_5i25.0.gpio.001.is_opendrain 5 bit RW FALSE hm2_5i25.0.gpio.001.is_output 5 bit RW FALSE hm2_5i25.0.gpio.003.invert_output 5 bit RW FALSE hm2_5i25.0.gpio.003.is_opendrain 5 bit RW FALSE hm2_5i25.0.gpio.005.invert_output 5 bit RW FALSE hm2_5i25.0.gpio.005.is_opendrain 5 bit RW FALSE hm2_5i25.0.gpio.007.invert_output 5 bit RW FALSE hm2_5i25.0.gpio.007.is_opendrain 5 bit RW FALSE hm2_5i25.0.gpio.009.invert_output 5 bit RW FALSE hm2_5i25.0.gpio.009.is_opendrain 5 bit RW FALSE hm2_5i25.0.gpio.010.invert_output 5 bit RW FALSE hm2_5i25.0.gpio.010.is_opendrain 5 bit RW FALSE hm2_5i25.0.gpio.017.invert_output 5 bit RW FALSE hm2_5i25.0.gpio.017.is_opendrain 5 bit RW FALSE hm2_5i25.0.gpio.017.is_output 5 bit RW FALSE hm2_5i25.0.gpio.018.invert_output 5 bit RW FALSE hm2_5i25.0.gpio.018.is_opendrain 5 bit RW FALSE hm2_5i25.0.gpio.018.is_output 5 bit RW FALSE hm2_5i25.0.gpio.019.invert_output 5 bit RW FALSE hm2_5i25.0.gpio.019.is_opendrain 5 bit RW FALSE hm2_5i25.0.gpio.019.is_output 5 bit RW FALSE hm2_5i25.0.gpio.020.invert_output 5 bit RW FALSE hm2_5i25.0.gpio.020.is_opendrain 5 bit RW FALSE hm2_5i25.0.gpio.020.is_output 5 bit RW FALSE hm2_5i25.0.gpio.021.invert_output 5 bit RW FALSE hm2_5i25.0.gpio.021.is_opendrain 5 bit RW FALSE hm2_5i25.0.gpio.021.is_output 5 bit RW FALSE hm2_5i25.0.gpio.022.invert_output 5 bit RW FALSE hm2_5i25.0.gpio.022.is_opendrain 5 bit RW FALSE hm2_5i25.0.gpio.022.is_output 5 bit RW FALSE hm2_5i25.0.gpio.023.invert_output 5 bit RW FALSE hm2_5i25.0.gpio.023.is_opendrain 5 bit RW FALSE hm2_5i25.0.gpio.023.is_output 5 bit RW FALSE hm2_5i25.0.gpio.024.invert_output 5 bit RW FALSE hm2_5i25.0.gpio.024.is_opendrain 5 bit RW FALSE hm2_5i25.0.gpio.024.is_output 5 bit RW FALSE hm2_5i25.0.gpio.025.invert_output 5 bit RW FALSE hm2_5i25.0.gpio.025.is_opendrain 5 bit RW FALSE hm2_5i25.0.gpio.025.is_output 5 bit RW FALSE hm2_5i25.0.gpio.026.invert_output 5 bit RW FALSE hm2_5i25.0.gpio.026.is_opendrain 5 bit RW FALSE hm2_5i25.0.gpio.026.is_output 5 bit RW FALSE hm2_5i25.0.gpio.027.invert_output 5 bit RW FALSE hm2_5i25.0.gpio.027.is_opendrain 5 bit RW FALSE hm2_5i25.0.io_error 5 s32 RW 0 hm2_5i25.0.read.tmax 5 bit RO FALSE hm2_5i25.0.read.tmax-increased 5 s32 RW 0 hm2_5i25.0.read_gpio.tmax 5 bit RO FALSE hm2_5i25.0.read_gpio.tmax-increased 5 u32 RW 0x00000001 hm2_5i25.0.sserial.port-0.fault-dec 5 u32 RW 0x0000000A hm2_5i25.0.sserial.port-0.fault-inc 5 u32 RW 0x000000C8 hm2_5i25.0.sserial.port-0.fault-lim 5 u32 RW 0x004C4B40 hm2_5i25.0.watchdog.timeout_ns 5 s32 RW 0 hm2_5i25.0.write.tmax 5 bit RO FALSE hm2_5i25.0.write.tmax-increased 5 s32 RW 0 hm2_5i25.0.write_gpio.tmax 5 bit RO FALSE hm2_5i25.0.write_gpio.tmax-increased

I'm not sure how I should edit the 8i20.hal file. I installed hall sensor wires to pin 1, 2 and 3 on the 7i84 board.

This is the edited 8i20.hal file
Code:
loadrt hostmot2 loadrt hm2_pci config="sserial_port_0=00000000" loadrt threads name1=thread1 period1=500000 loadrt bldc cfg=h addf hm2_5i25.0.read thread1 addf bldc.0 thread1 addf hm2_5i25.0.write thread1 addf hm2_5i25.0.pet_watchdog thread1 net h1 hm2_5i25.0.7i84.0.3.input-00 bldc.0.hall1 net h2 hm2_5i25.0.7i84.0.3.input-01 bldc.0.hall2 net h3 hm2_5i25.0.7i84.0.3.input-02 bldc.0.hall3 net ang bldc.0.rotor-angle hm2_5i25.0.8i20.0.1.angle setp bldc.0.pattern 34 start

Now when I source the 8i20.hal file, I get this:
Code:
cnc@xdsl-46-23-166-232:~$ halrun . halcmd: source /home/cnc/Desktop/8i20.hal HAL: ERROR: function 'hm2_5i25.0.pet_watchdog' not found /home/cnc/Desktop/8i20.hal:9: addf failed halcmd:

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

More
9 years 1 month ago #98764 by andypugh
Replied by andypugh on topic Setting up 5i25+7i85+8i20
The watchdog no longer needs to be petted (Actually, it is auto-petted by the hm2_write function).
Just delete that line.
The following user(s) said Thank You: stes

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

Moderators: cmorley
Time to create page: 0.450 seconds
Powered by Kunena Forum