mr_electrician

NX-HAD401 HS Analog Input Channels

3 posts in this topic

Hey there forum guru's!!!

I am trying to read through the manuals for an NX-HAD401 High Speed Analog Input Card.  It is not very clear as to where you assign your variable in order to grab a channels analog input value.  Can you point me in the right direction?

I am thinking it is in the "Analog Input Values 1 to 10" and if so why is it set up as an array?  Is it because it takes the average of the samplings and uses the result as the channels input value?

I am sure I will have more questions but this may clear up a few.

HAD401 Configuration.jpg

Share this post


Link to post
Share on other sites

It is set up as an array because the HAD module can sample faster than the primary period of the controller.  If you double click on the NX-HAD401 in the EtherCAT coupler or in the CPU Rack, you will see the options for number of samples per primary period:

5f98e400af38e_NX-HADSampling.thumb.png.a

This is how it accomplishes that.  If you change this setting, the size of the array in the IO map needs to be updated.  In this example, I changed it to 20 samples per period.  The IO Map of the HAD module starts with an array of 10 by default and if you exceed 10 with the above setting, then you need to also do the following:

Find the module on an EtherCAT coupler or on the CPU Rack, select it, then choose the Edit IO Allocation settings as shown:

EditIOAllocation.thumb.png.8e6e1ccb1267e

Press the Update IO Entry button as shown:

UpdateIOEntry.png.dfb927fa4cef64dec8b707

Then your IO map window will have enough arrays to show however many samples you chose in your settings:

IOMap2Arrray.png.464c2361e88856a4e18c6b2

 

By default, the number of samples is 1 and the array size is 10 (so that you can do some increasing of the sampling without changing the mapping).  Use Index 0 of that array to get your single sample.

Share this post


Link to post
Share on other sites

Thanks for the insight Michael.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now