All Activity

This stream auto-updates   

  1. Past Hour
  2. Mapping Device Bits into a Word

    Hmm That is a bit odd. I imported your FB into a new project but when I right click it I don't have the option to export it, as you can see in the screenshot. I wonder why that might be.
  3. Mapping Device Bits into a Word

    You can right click anything you want....DUT, FB or POU and 'export'. This saves as an .asc which can then be imported. I find this is the quickest method for importing new code. Also very useful if you make single changes and want to back up the function rather than the whole program.   Regards   Daniel.
  4. Mapping Device Bits into a Word

    Yes I see exactly how it works thanks. I'm interested to now how you exported the block as an .ASC file as well.
  5. Mapping Device Bits into a Word

    You are very welcome...take the time to understand how it works; for your own benefit :). The nice thing about that FB- is you can use it as many times in your program as you need. From memory; R registers are 16-bit registers so like your standard D-Registers except they are stored in retentive memory areas. ZR registers are retentive but can be mapped as bits e.g ZR600.1 for example. They are available as expandable memory on the Q-Series (im not 100% sure on L or iQR series).   Regards Daniel.
  6. Today
  7. Mapping Device Bits into a Word

    One more question since we are talking about ZR registers. As I understand it they are the same as R registers. Is this correct?
  8. Mapping Device Bits into a Word

    Thanks for taking the time to do that Collins. The code works well  
  9. com error in QJ71MT91 modbus module

    @diraemon If you use GX Works 2 you don't need to create communication ladder program. You can config them by use Intelligent Function Module -> select Modbus module -> MODBUS_Device_Assignment then mapping PLC Address to MODBUS variable. After that you can use Modbus Poll or ModScan to communicate with PLC.
  10. com error in QJ71MT91 modbus module

    I use ladder sir for the program,, not familiar with FB,, this program that I tried and the result was no error but I still failed to try modbus poll,,
  11. com error in QJ71MT91 modbus module

    Are you able to ping your module from your computer?, have you established the necessary IP address? You may need to use a ethernet switch if you are not using a crossover cable. Send me your current GXW2 project and I will integrate the FB for you...     Regards Daniel.
  12. com error in QJ71MT91 modbus module

    but in this time i can write the module QJ71MT91 without error in notif LED module but still cant connect the module to modbus poll,, i connect the cable like this to connect modbus poll but failed always,,
  13. com error in QJ71MT91 modbus module

    its still cant work in gxwork2 sir, i can write the program you give to me to PLC,, but thx you for reply me mr. daniel
  14. can I have the .zip file? please sent to me
  15. Yesterday
  16. Use  DINTDataType.[Index_Value]  Note the '.' between the DINT and the opening bracket Remember to confirm that Index_Value is 0 - 31 to prevent a runtime error. The syntax of DINT[ index] with no period is used if the DINT tag was an array to select the particular array member. And DINT[array_index].[Index_Value] could be used to access a particular bit from one member of an array.
  17. Subtracing Date and Time

    Awesome Tiger Lily! Good to see you around.
  18. com error in QJ71MT91 modbus module

    thx you mr. daniel.. i try it,,
  19. Hi All,   I have a question on if its possible to do indirect addressing of individual bits of a tag of datatype dint in studio5000 ladder logic? I am writing a routine that should  loop through the individual bits of the tag of data type dint and do processing . Like instead of using OTE instruction ConfirmRequest[rvIndexSafety] where confirm Request is BOOL[32] elements  if condition true and rvIndexSafety =1 => it will set confirmRequest[1]  I need to use DINT and set DINTDataType.1  How can i approach this?   Thanks,  
  20. com error in QJ71MT91 modbus module

    See attached ASCII Source and Image for reading the 5 main error messages from the Modbus TCP Module. I have bench tested this FB but cant test on the real hardware as I dont have this module. Add this to your project by doing the following. 1. Open your project in GXWorks2. 2. Cick Project --> Open Other Data --> Read ASCII Format File. 3.Point to the .asc file and execute 4.Once import complete, define an instance of the FB in your global variables. 5. Load the FB into your POU and attach instance name, your need to add the head address of the module to the input parameter iHeadAddr. 6. All output error codes will come out as INT's, so either create 5 INTs or just make an array like I did. 7. oNo_Error is a Boolean and is just for indication. 8. Compile and Download then see what errors you get back.     Regards Daniel.   ModbusTCP FB.asc ModbusTCP FB.bmp
  21. Subtracing Date and Time

    If you can use Structured text this should work: (*I USED THE SAME TIME STAMP VARIABLES IN THE EQUATIONS BELOW WHICH ARE JUST THE PLC CLOCK ADDRESS IN MY PROGRAM, BUT THE 1 AND 2 LINES SHOULD BE YOUR TWO DIFFERENT TIME STAMP VARIABLE SETS, YOU COULD ALSO INCLUDE THE MONTH AND YEAR IN THE SAME MANNER IF NEEDED*) UINT_DAY1:=STRING_TO_UINT(LEFT((WORD_TO_STRING(CLOCK_DD_HH)),2)); UINT_DAY2:= STRING_TO_UINT(LEFT((WORD_TO_STRING(CLOCK_DD_HH)),2)); (*SUBTRACT THE TWO VALUES FOR YOUR DAYS REMAINING RESULT*) UINT_HH1:= STRING_TO_UINT(RIGHT((WORD_TO_STRING(CLOCK_DD_HH)),2)); UINT_HH2:= STRING_TO_UINT(RIGHT((WORD_TO_STRING(CLOCK_DD_HH)),2)); (*SUBTRACT THE TWO VALUES FOR YOUR HOURS REMAINING RESULT*) UINT_MM1:=STRING_TO_UINT(LEFT((WORD_TO_STRING(CLOCK_MM_SS)),2)); UINT_MM2:= STRING_TO_UINT(LEFT((WORD_TO_STRING(CLOCK_MM_SS)),2)); (*SUBTRACT THE TWO VALUES FOR YOUR MINUTES REMAINING RESULT*) UINT_SS1:= STRING_TO_UINT(RIGHT((WORD_TO_STRING(CLOCK_MM_SS)),2)); UINT_SS2:= STRING_TO_UINT(RIGHT((WORD_TO_STRING(CLOCK_MM_SS)),2)); (*SUBTRACT THE TWO VALUES FOR YOUR SECONDS REMAINING RESULT*) I am not sure it is the best or cleanest way to do it, but it will work!
  22. RTU Modbus With CJ2M PLC and 3G3RX Drives on RS485

     
  23. CJ2M-CPU35 and LS drives

     
  24. I/O's Read/Write from Micro850

    Hello, > He would like to know the commands in order to read or write the data and the TCP/IP data structures and frames. AB Ethernet/IP protocol is used. He is in for a long road if he wants to write a stack/driver to read/write data. Not impossible. The protocol implements the full 7 layer OSI model. He does not need to implement all layers but, the layers must be handled in the request/response data packets. There are a few open source projects floating around that might help him. Not sure if any support the 8xx line. Or he might try PeakHMI.
  25. I/O's Read/Write from Micro850

    I've seen AdvancedHMI mentioned favorably on here a number of times but I don't know if it supports communications with the 850. It depends on what he used to build his application.
  26. Hello! Just wondering if any one has any experience with the Velocio PLCs, they look like a perfect fit for an application I am developing where we need something extremely small; but I am reluctant to specify them into a product line because I don't really know much about them or the company. I am hoping someone here has had some good experience with them they can share as a testimonial!  Any info about the PLCs reliability would be greatly appreciated.   Thank you!!!
  27. I/O's Read/Write from Micro850

    I guess the first thing to find out is, what kind of application is your customer using/what software did he use to build his application? My understanding is, you will need an OPC server to allow communication between the Micrologix and your customer's application. Rockwell's RSLinx is one example of an OPC server. I would start by asking your customer for more details about his software application and then figure out how to make it communicate with the Micrologix.
  28. Panelview 1000 does not display correct input

    Hmmmm Can you attach your PLC and HMI files here?
  29. Load more activity