Modbus (RS485) and Automation Direct GS2 Example

I am looking to see if anyone has used the Automation Direct GS2 Drive and LabView and has a workign VI? I have been looking over Modbus over RS485 that the GS2 uses and I have looked at the Modbus .vi library. Correlating all that into one cohesive thought seems to be escaping me. I am new to LabView and never seen Modbus before and I have a very short schedule to get something going. Even if all the .vi did was start and stop the motor I would be happy. Then I could work the rest out.
GS2 Manuals
Solved!
Go to Solution.

That was a better explanation then the other info I was looking at as far as address and commands. I at least have the drive displaying an error. Yesterday it just sat there and showed 00 on the drive display. Sometimes it is the little victories. I am also getting error codes back from the drive which is some sign of life, the drive displays error 03 and my vi displays a 03 when it errors out.
From the manual:
error 03: Communications Warning: Illegal data value - The data value received in the command message is not available for AC drive.
But now for the continuing headaches.
I have tried to read the firmware version using the command/address you talked about with no success. I guess I would be even happy with that to work. The vi does not accept an address of 091B (run) it will not accept the "B" of the hex number.
So for run:
Description                Hexadecimal    Modbus Decimal     Octal
Serial Com Run               091B                 42332                      4433
This implies a Read Input Register command 4 to Hex address 091B? Looking at the Modbus intro I see the code 4 in table 2 aka the read Input register. I would say that is just to read the status of the run register. 00-Stop, 01-Run. So what does that corespond to writing to the register 62332?
Attachments:
GS2 Control.vi ‏13 KB

Similar Messages

  • Modbus communication with an automation direct GS2 AC Drive

    Has anyone written any VI's to communicate with an automation direct GS2-41P0 AC Drive using modbus?  I need to ask the unit a few questions while it is running and possibly start and stop it.  I have started searching around and found the NIModbus VI's.  I just have not figured out how to modify them to suit my needs yet (I just started playing with this today).  So far it looks like Modbus might make my head explode, but I am hoping it is easier than it looks at first.
    Bryan

    Hi Bryan,
    I've never tried using modbus to communicate with that particular device, but if you have any specific questions I'll do my best to answer them.
    Also, you may be interested to know that the AutomationDirect GS2 Drive is supported by our NI-OPC Server, which may be a more attractive alternative to modbus.  I highly recommend you take a look at the LabVIEW Datalogging and Supervisory Control (DSC) module (wihch includes NI-OPC Server) to see if it is something your application would benefit from.
    Supported Device & Driver Plug-in List for NI-OPC Server
    Connect to Any PLC
    LabVIEW Datalogging and Supervisory Control
    Eric V
    National Instruments
    Applications Engineer
    Certified LabVIEW Associate Developer
    "I'm a Ramblin' Wreck from Georgia Tech and a helluva (NI Applications) Engineer!"

  • Is it possible to change the resolution of indivdual channels in measurement and automation explorer using a VI

    Hi
    I'm acquiring data on 8 analog input channels using a PCI-6052 E card. The data on channels 5 thru 8 is going to be between +1V and -1V. So for greater resolution I'm manually changing the range of these channels to +1V to -1V in the measurement and automation explorer. Is there a way by which I can make these changes directly using a VI ?
    Thanks,
    Shiv

    Hi
    Yes you can, but only if you use the "AI Config" VI. AI config allows different gains for different channels. The "channels" and "input limits" inputs of the VI accepts arrays. The first element of the input limits array corresponds to the first element of the channel array. Check the "cont acq&chart (buffered).vi" in the LV examples. There you see what I mean!
    Regards,
    Luca

  • How can I get all the options of Field Point Explorer 3.0.2 in Measuremen​t and Automation Explorer 3.1?

    I am a student using LabVIEW and Compact Field Point to implement a
    senior design project in Electrical and Computer Engineering.  We
    have LabVIEW 7.1 and a cFP-2020 and additional modules.  We are
    trying to use the CTR-500 module to output a pulse train to drive a
    stepper motor.  We have found instructions online of how to do
    this, but they all use Field Point Explorer.  The instructions
    make use of options in Field Point Explorer that are not included in
    Measurement and Automation Explorer (the software included with the
    cFP).
    I have downloaded Field Point Explorer 3.0.2 and followed the
    directions.  Now, in LabVIEW, when I using the newly created .iak
    file, I get a dialogue asking to find the SubVI: 'FP Read (Float Array
    -IO).vi'.  Included with LabVIEW are subvis for FP Read, but not
    with the float array part.  So I figure I cannot use Field Point
    Explorer created .iaks with LabVIEW 7.1.  So how cannot I access
    the same options in Measurement and Automation that I was able to find
    in Field Point Explorer?
    Thanks

    Hi,
    FieldPoint Explorer is no longer used to configure FieldPoint systems. However, I do not think that the configuring your system in FieldPoint Explorer is causing the error.
    FieldPoint systems are now setup in Measurement and Automation Explorer (MAX).  Information on setting up FieldPoint systems in MAX can be found in the MAX help under: Installed Products>> FieldPoint. Also, I recommend upgrading to the latest FieldPoint driver and version of MAX.  The FieldPoint VI's will be slightly different when you upgrade, so there is a good chance that this will eliminate the error.
    Regards,
    Hal L.

  • Why do I need to connect QTR and S+ directly on the strain gage?

    I connected two wires with a 2" 120-ohm strain gage. Later, connect these wires to a strip connector. Now connect the red wire from NI system (SCXI-1314 which is already converted for 120-ohm) to red in the strip. This red is P+ in SCXI-1314. Now I connect the black (QTR in SCXI-1314) and white (S+ in SCXI-1314) to the white wire on the strip connector. Unfortunately this did not work. I got a constant strain output. But when  I connect the black (QTR in SCXI-1314) and white (S+ in SCXI-1314) to the strain gage directly it works fine.
    I tried with 4 strain gages and got the same result.
    It will be great if any one can tell me what went wrong?

    Hi Shaurav,
                Sorry, in my last post, I meant to say "SCXI-1520", which I am assuming you have  because you have the 1314 terminal block.  The SCXI-1520 has programmable gain, as mentioned HERE.  Also, I recommend looking at THIS discussion forum post becauseit talks about the different ways to set that gain.  Have you tried applying a gain in Measurement and Automation Explorer?  How are you programming this?  Thanks!
    aNItaB
    Applications Engineer
    National Instruments
    Digital Multimeters

  • Scale in Measurement and Automation

    Hello,
    I have 50 load cells. When loaded, they give Voltage values. But I want the results directly in load values( i.e., in kilo Newtons). I have 50 different conversion factors (one for each load cell) written in a text file. How do I use the "Scale" option in Measurement and Automation Explorer to convert voltages to loads so I get load values directly ? Below is the step-by-step description of my problem.
    My problem:   I am getting 50 voltage values ( V1, V2, V3...........V50)
                           But I want them in terms of kilo Newtons (kN1, kN2, kN3......kN50)
                           I have 50 multipliers that can do this conversion (m1, m2, m3.....m50). They are in a text file.
                           All I need is kN1 = V1  * m1, kN2 = V2 * m2 and so on.
    How do I this scaling operation ?
    Thank you very much in advance for your kind help.

    Thanks very much for the reply.
    Attached is my code. It measures votages (upper left side of the code) and it also reads the multiplying constants from a text file (lower left side of the code). Then using the 'for loop' at the center, it converts the voltages to loads and finally it writes the load values in a file (middle left of the code, path labled as SC1).
    Is my code efficient ?
    Someone told me such code will slow down the entire process because of the loop. He suggested that I use "DAQmx create scale" and "scale node" to write a more efficient code. I don't know how to do that.
    Can someone help me on this, please?
    Attachments:
    Learning-2.vi ‏42 KB

  • ISE issue and re-direct to a portal

    I have an issue that I need help on.  This has to do with wired 802.1x NOT wireless
    I have a network Windows 2008R2 Active Directory Servers and ISE version 1.1.2 patch-5.  The ISE is
    integrated with Active Directory without any issues.  The supplicant is native Windows 7 Enterprise 64bits.
    I've configured Windows 7 suplicant for "User or Machine authentication".  on the ISE Authentication rule, I
    configure the ISE for 802.1x with ACtive Directory called CCIESEC.  On the authorization rule, I've
    configured 802.1x and was machine authticated equals true.  I also have another rule that states "machine
    auththenticated begins with "/host".  That will permit access.  Default rule is "deny access".
    I've also set the Machine Access Restrictions (MAR) to 1 hour for testing purpose.  After one hour, the
    machine must be rebooted or they will not have access to the network.  I've setup "close" mode (aka high
    impact mode).  Everything is working almost as expected.
    Here is what I would like to do:
    1- user connects Windows 7 machine to the network.  When the CTL-ALT-DELETE appears, the machine will be
    machine authenticated.  When the user type in the Active Directory password, it will be "user authenticated".
    it is working now.
    2- After 1 hour, the MAR expires, meaning that the machine will no longer has network access.  when the user types in the user/password, I want the browser to popup and re-direct the user to a html portal saying something like "this machine will need to be rebooted in order to have network connectivity restore".
    How would go about doing this in step 2?  please help with detail steps.
    Thanks in advance.

    Please check this......
    1.) Please check that the two Cisco av-pairs, configured on the  authorization profile should exactly match the example below. (Note: Do  not replace the “IP” with the actual Cisco ISE IP address.)
    –  url-redirect=https://ip:8443/guestportal/gateway?...lue&action=cpp
    – url-redirect-acl=ACL-WEBAUTH-REDIRECT (please ensure that this ACL  is also defined on the access switch)
    2.)Ensure that the URL redirection portion of the ACL have been  applied to the session by entering the show epm session ip command on the switch. (Where the session IP is the IP address  that is passed to the client
    machine by the DHCP server.)
    i.e.
    Admission feature : DOT1X
    AAA Policies : #ACSACL#-IP-Limitedaccess-4cb2976e
    URL Redirect ACL : ACL-WEBAUTH-REDIRECT
    URL Redirect :
    https://node250.cisco.com:8443/guestportal/gateway?sessionId=0A000A720000A45A2444BFC2&action=cpp
    3.) Also make sure that the preposture assessment DACL that is  enforced from the Cisco ISE authorization profile contains the following  command lines:
    remark Allow DHCP
    permit udp any eq bootpc any eq bootps
    remark Allow DNS
    permit udp any any eq domain
    remark ping
    permit icmp any any
    permit tcp any host 80.0.80.2 eq 443 -->for URL redirect
    permit tcp any host 80.0.80.2 eq www --> to provides access to  internet
    permit tcp any host 80.0.80.2 eq 8443 --> for guest portalport
    permit tcp any host 80.0.80.2 eq 8905 --> for posture  communication between NAC agent and ISE (Swiss ports)
    permit udp any host 80.0.80.2 eq 8905 -->for posture communication  between NAC agent and ISE (Swiss ports)
    permit udp any host 80.0.80.2 eq 8906 -->for posture communication  between NAC agent and ISE (Swiss ports)
    deny ip any any
    4.) Please also ensure that the above URL Redirect has the proper  Cisco ISE FQDN.
    As per your confirmation, I am going to close the case for this specific  inquiry. We strive to provide you with excellent service. Please feel  free to reach out to me or any member of the SAC team if we can be of  any further assistance or if you have any other related questions in the  future. We value your input and look forward to serving you moving  forward.

  • Replace sentances and words directly in the FramMaker

    Hi!
    I want to replace complete sentances and words directly in the FramMaker where I keep the layout of my entire book.
    The program/the code I am looking for need to be able to replace many words and sentences at the same time.
    For example:
    <in such a way>  after replacing:  <på sådant sätt>
    <To this end>  after replacing:  <För detta ändamål>
    <refer to the instructions>  after replacing:  <se anvisningarna i>
    <by means of> . after replacing:  <med hjälp av>
    I´ve come across som programs with language memory, but I need to be able to replace thousands of words/sentences and the opensource versions I´ve seen only allow me to load the memory with 150 words.
    Would you be so kind and point me in the correct direction. If you could recommend some program or code that is able to do at least some of these requirements, it would be of great help because i could rewrite the code myself.
    With kind regards
    Cecilia V

    You might want to consider looking at FrameScript http://www.framescript.com to automate this.
    If you have the FM content in structured FM and can roundtrip it via XML, then there would be a lot of other tools available for processing the content. I'm partial to TextPipePro, see http://www.datamystic.com/textpipe.html
    You may be also be able to use TextPipe on the MIF format, however, sometimes FM breaks up the content into smaller substrings, so it's quite possible to miss some groups of words or sentences for replacement.

  • I have problem when updating the latest version of Pro-X, I tried for several times, so I uninstall and re-install it. It is unsuccessful to re-install the Pro-X and it direct me to ask help from CS,also showing this message: Exit Code: 6  Please see spec

    I have problem when updating the latest version of Pro-X, I tried for several times, so I uninstall and re-install it. It is unsuccessful to re-install the Pro-X and it direct me to ask help from CS,also showing this message: Exit Code: 6  Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW025, DW050 ... WARNING: DW024, DW025 ..., please advice me the step to re-install the Pro-X. Thanks

    Please follow Errors "Exit Code: 6," "Exit Code: 7" | CS5, CS5.5
    Do let us know if it worked.
    Regards
    Rajshree

  • Error -2147220733 occurred at DAQ Assistant (in Measurement and Automation Explorer)

    Ok!  Just before the weekend I figured out how to make channels in Measurement and Automation Explorer for inputs through a couple different NI input devices (USB-9211A & PCI-6229 DAQ).  Things were going well.  Loaded up the computer today, added a few more channels.  Worked fine.  Now all of a sudden, any channel I make has an error and if I try modifying existing channels and saving, I get same error:
    "This global channel currently has an error.  You can save the global channel, but it cannot be used until all errors have been fixed.  Press "Yes" to save anyway, or "No" to cancel and show the error."
    If I hit yes, the channel is non functional.  After hitting no, I get:
    "Error -2147220733 occurred at DAQ Assistant.  Possible Reason(s): "
    with no possible reasons listed.  I tried restarting the program.  I tried restarting the computer.  I verified connections.  Searched for the above stated error number on ni.com, google.ca, and in the MAX help files, and found absolutely nothing.  I have no clue what to do.  Any help would indeed be very much appreciated.

    Hi there,
    This is my first time on here and I've only been using this software for a couple of days so it's possible I'm making a trivial error but I thought I'd post here anyway as I can't find anything on the net about my problem.
    I also get an error while trying to save:
    Error -2147220733 occurred at DAQ Assistant
    Possible Reason(s):
    Requested Code: -2147220733
    But mine comes about in different circumstances to the one in the original post on this thread by Kahless. I was editting a VI logger task and within that I was trying to edit an NI-DAQmx Task. I was trying to change the clock settings, specifically I was attempting to change the Rate (Hz) from the 1k default to just 20, or 200. I got the error while trying to save so changed it back to 1k, but the error persisted even though I'd set it back to what it was.
    I thought at first it might be simply that I was trying to edit an NI-DAQmx task within VILogger, so I tried making the ammendment directly but the problem was still there. 
    Any ideas?
    Many thanks.

  • Direct and in direct procurement

    Hi experts,
    What is the Diff between Direct and In-direct procurement in SRM and i want to to config for Classic sceanrio.
    basis team has given me the servers now please let me know basic Config settings to Implement SAP SRM classic scenario,integrate with ECC.
    Smriti

    Hi Smriti,
    Indirect Procurement = The procurement what you do is not used in the end product of the manufacturing compay. Like Office peripherals,Computers, Stationary. What ever you have procured is not used in your end product
    The business scenario is Self Service procurement. Configuration part you can get from master guide from service market place
    Direct Procurement: The procurement what you do is used in your end product of the manufacturing compay. Example: If a mobile manufacturer company procures the keypads,battery,dispay screen...all these material is used in the end product. So these kind of procurement you called as direct procurement.
    Configuration for Direct Procuremtn will be as follows
    In R/3
    1. You need to configure two views i,e V_T160PR,V_T160EX and you need to schedule report BBP_EXTREQ_TRANSFER
    In SRM.
    1. Do the Technical settings like RFC Connections,Workflow Activations,Publish Templates
    2.(Imp Config)Dedine an entry channel for this (Create a new Org unit which acts as )
    3. Create a RFC user, so that communcation goes between R/3 and SRM
    4.In Org structure you have to define values for an attribute DP_PROC_TY .
    These are the config required for a PDP.
    Hope this explanation resolved your query
    Rg
    Sameer

  • [svn] 3787: Added FxTextArea, FxTextInput, and TextView class-level examples to the Component Explorer.

    Revision: 3787
    Author: [email protected]
    Date: 2008-10-21 12:16:28 -0700 (Tue, 21 Oct 2008)
    Log Message:
    Added FxTextArea, FxTextInput, and TextView class-level examples to the Component Explorer.
    Modified Paths:
    flex/sdk/trunk/samples/explorer/explorer.xml

    One workaround is to turn off automation:
    File-->Options, Advanced tab, General Section, uncheck "Enable Automation Events"
    However, you will loose the ability to configure callouts, and all of the commands in the Process Engineering tab.
    Another workaround is to change the loop number of the shape you are editing before changing its type. Then change the loop number back to the correct loop number.
    This is another example of the pernicious philosophy of trying to help the user do what the programmers think the user is trying to do that started in Excel 2000 (where you can no longer tell excel that you want a scatter plot - it will force the plot
    to be a line plot under certain circumstances).
    I suppose another option would be to modify the master and swap the text and subtype shapes in the indicator to use the subtype property for the loop number and then use the text for the instrument type. I guess this is what MS was trying to implement, but
    didn't explain it well enough to their programmers.

  • Form Data and Automation

    I have a few questions about collecting data and automating a process with a form. I've created a sample form to illustrate my questions.
    I would like to create a PDF form which could be distributed among workers at an office. I'll send the form to the office manager and won't know how many people will use it or how many times it will be distributed. I realize I could create a webpage form to accomplish the same thing but I don't to require users to go to a website, register, and then submit the form. I think a form (if feasible) may be more user-friendly considering the users.
    Questions...
    1. I'd like the data to be collected in a database on my server. This shouldn't be an issue in a stand alone form but how would the following criteria effect this?
    2. When the data is stored into a database on my server, this triggers an automatic email to whatever company was checked under #1 (lite pink). Could a copy of the form be sent to each company sent without disclosing the other companies solicited? Only part of the form is visible? With comments, you can display but not print. Is there a way to use these capabilities for something like this?
    3. I'd like capture who's using the form so info in 2, 3, and 4 (red). Its important for me to collect feedback from the user on the effectiveness of this form. Did the companies reply with a price?
    4. I would like the companies to answer specific questions about their product (yellow). For example, specific price, warranty or delivery. Sometimes when asking companies for this information, they may or may not provide all this information in their response. By using this form as the platform for their response, the company would need to answer the specific information. So, can this form then be sent back to the user after completed by the company?
    5. The company my want to attach a written proposal along with the information on this form (green). Can they attach to the form?
    I assume other systems will need to be developed in conjunction with the PDF to accomplish this wishlist. Essentially, i want the PDF form to be the conduit for communication back and forth between the parties and I want to capture the data behind the scenes in my server. This may be outside the realm of possibilities of the PDF form and more appropriate through a website but a form with this group would be more user friendly and used more frequently. They wouldn't have to bookmark a website, register with a name and password, or seek out this website. The PDF sits on their desktop.
    Any thoughts on one or more of these questions would be appreciated.

    A PDF form can be set up to submit to a web server, so what you outlined can be done with a PDF form. Most of what you need will have to be done server-side, so someone will have to write the program on the server that pocesses the incoming submissions and takes appropriate action.
    You can set up certain fields to be required so that if they are not completed, the user won't be able to submit the form.
    To include attachments, there are basically two options.
    1. Set up a field to work like a HTML file upload field. This involves a bit of JavaScript in the form: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.734.html
    If using this method, it might be best to submit as "HTML" and process the form as though it were an HTML form, with the exception of the response (usually FDF) that must be returned. There is a lot of mature code/libraries available for processing HTML forms.
    2. Set up the form to submit the entire PDF, as opposed to just the form data. This requires that the PDF be Reader-enabled, which allows Reader users to attach a file as a comment and submit the PDF form + attachment. The problem is the server-side processing become more difficult since you have to find a way to extract the form data from the PDF. If everyone will be using Acrobat, or Reader 11 (or later, presumably), then the document does not need to be Reader-enabled
    There's more to know, particularly in dealing with security and the client-side issues relating to how Acrobat/Reader respond when submitting and receiving a response from a web server, but I hope this can get you started.

  • Direct Draw Examples

    When JDK 1.4 was released a month ago or so there was an article on the javasoft home page talking about all the new things that were in 1.4. One of the things mentioned was a direct drawing API that is similar to DirectX.
    When I downloaded and installed 1.4 I didn't see anything in the demo directory that looked to be a direct draw example. Does anyone know if there is a web page of examples for this new direct draw API?
    Thank you
    Greg

    check out this link: http://www.rolemaker.dk/articles/evaljava/Evaluating%20Java%20for%20Game%20Development.pdf
    the document is pretty large; it is up-to-date (from march 4), and the author has posted her/his email address - maybe it helps.

  • Multiple errors with DSC modules modbus master and slave

    Hi,
    I've searched quite a lot of posts but haven't found solution for my problem. I'm playing with LabVIEW DSC module and it's modbus master and slave functionalities. Even the LabVIEWs own modbus examples (Modbus Simulator and Fundamentals) seem to work randomly or not at all: When checking the Variable Manager utility Modbus Simulator (i.e. modbus slave/server) seems to deploy variables correctly with good quality but Modbus Fundamentals (i.e. modbus master/client) most often shows unknown value or bad quality for all the variables. When running the VIs I get 'Error -1950679035 Unable to locate variable in the Shared Variable Engine' and sometimes some other errors too. If the Modbus Simulator (slave/server) is expected to work fine I guess I should get two slaves communicating, but this isn't happening either. So maybe Modbus Simulator example isn't working either.
    I've tried undeploying and deploying the libraries, stopping and starting the SVE, booting PC, reinstalling DSC module, and setting firewall and antivirus software off. This problem is going on with two different computers, both of which have recently installed LabVIEW 2011, first PC with Win XP and second PC with Win 7. No other OPC servers should be installed to these computers. And what is really interesting, the problem seems to have nothing to do with my network since Simulator and Fundamentals examples are not working even if the network cable is unplugged!
    Any suggestions? Replies are highly appreciated!

    V8 has the same feature, but the words are different.
    The Generator typically uses the Driver time base, and the Gl. Var Write is writing once per block.
    So, to see all values, you must have a block size of one.
    I set up the Driver timebase to 10 Hz, block size of 1. The Generator and the Read Variable default to the Driver timebase.
    The Generator is making a 2 Hz Rectangle waveform. YOu can see that it's shifted, but otherwise intact.
    - cj
    Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.

Maybe you are looking for