BITS N BYTES

MrPLC Member
  • Content count

    911
  • Joined

  • Last visited

Everything posted by BITS N BYTES

  1. servo 1s SYSMAC

    Use the axis motion command instruction MC_MoveJog in Sysmac Studio. This command includes both FWD [PositiveEnable] and REV [NegativeEnable] boolean input attributes.
  2. MQTT_Local_Client for PLC OMRON,Yaskawa

    MQTT Function block library here. https://www.support-omron.fr/telechargements/documentations/2019-03-28%20-%2009-14-20%20-%201454888610/MQTT_library_revE.pdf  
  3. DWord to Data Types

    Even better!
  4. DWord to Data Types

    Wow learn something new everyday! That is really useful. Thanks Mike!
  5. EtherCat Disable Nodes

    Reporting back on excellent feedback from OMRON support. First, setting the option ECAT nodes to Disable do not report an ECAT fault and the Enabled nodes work just fine (without errors).     In axis settings, configure the axes for the option nodes just as you would if they were installed (enabled).     You can use start program or simply just call a section of logic that enables the optional ECAT nodes (it’s up to you and your preference). So I used the "EC_ChangeEnableSetting" function block set to TRUE or FALSE for each node to ENABLE or DISABLE the desired nodes, then use boolean state of "_EC_PDSlaveTbl[#]" to confirm state of each node. Thanks OMRON.      
  6. EtherCat Disable Nodes

    I have a base machine with 3 ECat nodes. 1S Servo and 2 MX VFD,s Nodes 1,2,3. These are set to ENABLED in the Enable/Disabled value. There is an Add On Option for this machine that adds a 1S Servo and an MX VFD. Nodes 4,5. These are set to DISABLED in the Enable/Disabled value. I am trying to create a SINGLE program that allows the add-on option hardware nodes 4,5 to be selected/de-selected. There is a POU for the Base_Machine with logic for controlling nodes 1,2,3 and A POU for the Add_On_Option with logic for nodes 3,4. In the MAIN POU I would like to use the EC_ChangeEnableSetting command to add nodes 4 and 5 when required. Can this be achieved. If the add-on nodes 4 and 5 are not physically installed does the initial DISABLED setting allow normal operation of nodes 1,2,3 without errors? Can or should I use the PrgStart/PrgStop command in my MAIN POU to Enable/Disable the Add_On_Option program listed in the Primary Task?but In the Axis Settings configuration both servos are listed, MC_Base_Machine and MC_Add_On. If the MC_Add_On axis is set to DISABLED will this allow the system to run without error? Anyone have any input or experience whether this approach is feasible and if yes am I on the right track?   Couldn't post a screenshot of program.....UGGHHH!  
  7. I have a structure in the NX controller that consists of three arrays, LREAL, BOOL and BOOL each 30 deep. Trying to link these to an NA HMI but cannot for the life of me figure out correct syntax!! Used Variable Mapping on the NA HMI to point to the NX structure but cannot figure out the syntax required.    
  8. NJ State Machine

    Many thanks Michael ! All good. Learning NA as fast as possible!
  9. NJ State Machine

    Am working hard to learn and get proficient with this great new platform. Any suggestions how best to implement a state machine in the NJ controller that would function in a similar fashion to the STEP/SNXT instruction set in the CJ series PLC's. Any ideas most welcome.
  10. Referencing NX Structure in NA HNI

    You da man Chelton!!!! dang if I was using square brackets for array pointer [[[[[[[[[   ]]]]]]]]]]]]]]]]]]]]]]] Round brackets fixed it (((((((((((((((           ))))))))))))))))))))). What a simple solution. THANKS A MILLION
  11. NJ State Machine

    I have been using this technique using enumerations to more easily identify each state during troubleshooting. My next challenge is how to show the string associated with each state on the NA HMI. Can and How do I reference the controller variable in the NA and display the string for each enumeration value? Can it be achieved using the enumerated variable directly from the controller OR must I create a brand new copy of the enumeration from the controller to the NA and use the integer value of the enumeration of the controller variable to control the enumerated text in the NA variable. Putting out this challenge!! ANY IDEAS FOLKS?
  12. NS10 FIRMWARE UPGRADE

    Just updated from NS-Designer V5 to V6 and am using and NS10-TV01B-V1. I have converted my project to Ver 6.01[G]. When I attempt to download I get the following promt:- System program version is older than project data. Upgrade system program is required in order to transfer project. Source: 6.00 Destination: 5.01 I assume this means I need to update the firmware. In reviewing the documentation "HowToRecoverUpdateVer6.pdf" Chater 5 "About Memory Cards" it states that the memory cards should not be formatted on a Windows 2000 SP2 or Windows XP platform. I am using XP. Is there a workaround for this problem to allow me to format the card and update the NS Firmware? Better still, is there a method to update the firmware directly through the serial port?
  13. I have a state machine using Enumerated Variable. When Viewing online the Enumerated name is truncated. Attached picture shows that current state is "Move_To_Pickup_Location" but the green text associated with the Current_State is truncated to "Move_To.." I have tried every possible combination of options under the "Tools" -> "Options" -> "Ladder Editor" and CANNOT seems to expand the green text to show the full name. Note that the Enumerated "Name" is the same as the Enumerated Comment". Again playing with "Ladder  Editor" settings I can find noway to show both when viewing the ladder Online. Any ideas??
  14. OMRON AutoUpdate Failure

    I have both CX_One and Sysmac Studio installed on my Windows 10 Professional computer. When running autoupdate it starts by first trying to install Communication MiddlewareCmw2004_0101Setup.exe. This fails everytime as indicated in attached images. Tried "DOWNLOAD ONLY" option and running install of Communication MiddlewareCmw2004_0101Setup.exe but same problem. Any suggestions how to resolve this issue?      
  15. TIML Timer

    You MUST enter Set Value in BCD format otherwise error will occur. See attached example. TIML_Example1.cxp See attached image of watch window. Timer SV is entered in D2 as #120 = 120 x 0.1 secs. = 12 Secs.
  16. CP1L-E three peripherals with rs232

    Add a second slave CP1L with two CL1W-CIF01 Serial RS-232C Option Boards and share date with main CP1L using Serial PLC Link Area? One port on slave PLC communicates data via Serial PLC Link to main PLC, other port reads RS232 analog signal data. OR CJ2M PLC with one port on CPU and additional two port SCU card. OR CP1H with two CL1W-CIF01 Serial RS-232C Option Boards and CJ Unit Adapter CP1W-EXT01 with two port SCU card.
  17. How to add 100 words

    Use a FOR/NEXT routine repeated 100 times and Index Registers. Example attached will sum D100 thru D199 and place result in D0 when W0.0 is true. Sum D100 thru D199.cxp Example.pdf
  18. How to add 100 words

    See attached example for LONG WORD addition. Adds [D100,101] + [D102,103] + [D104,105}........... The key here is to double increment the index register using ,IR++. During each pass of FOR/NEXT routine [now changed to 50 times] the index pointer moves 2 words instead of one. i.e. D100 then D102 then D104. Hope this helps. SUM LONG.pdf
  19. How to add 100 words

    You are welcome. And just for laughs here is how to add 25 words of FLOAT [4 WORD at a time]. Note that the index register is double incremented twice, once in the +F +D instruction and immediately afterwards with an output instruction. This moves the index pointer four words for each pass of the FOR/NEXT routine. First pass D100, Second pass D104 etc. etc. SUM FLOAT.pdf
  20. NC413 #8000 Double Command Error

    I know this a really old post. However I recently experienced a similar issue using a STEP/SNXT routine to control a two axis NC213 motion card. I have always used the P_Step flag A200.12 prior to every SNXT instruction to ensure that one PLC scan passes prior to transitioning to the next STEP. I discovered that the transition to each step were so fast that occasionally i got the failed #8000 Double Command Error. Sometimes this occurred on a daily basis and at other times once a week. This was driving me crazy!! I discovered is that even though the motion flags [Move Absolute, Move Relative etc. etc.] are shown as rising edge commands in the NC Card manual, this is NOT the case, each motion flag needs to remain ON for some time AFTER THE BUSY FLAG TURNS "ON". Therefore after each motion flag is turned ON in a STEP it transitions to the next STEP when the motion card BUSY flag turns ON, BUT ONLY AFTER A DELAY. The STEP when the card is BUSY transitions to the next STEP when the motion card BUSY flag turns OFF, BUT AGAIN ONLY AFTER A DELAY. The technique I implemented for the delay was a change of state in the word used for the STEP routine flags. This SET a delay flag that was used prior to every SNXT instruction. The delay flag was reset after 3 program scans which allowed the SNXT instruction to transition to the next STEP. It appears that either the NC documentation is incorrect OR the STEP/SNXT routine is so fast that it was causing the #8000 Error. My 2 cents.  
  21. How to add 100 words

    Here it is again. SUM LONG.pdf Found original PLC file. Hope it helps Sum D100 thru D199.cxp
  22. Could not open file

    Currently version 9.75 on one computer and 9.73 on another computer. Both show weird symbols, tasks etc. in unrecognizable, weird looking language?? Where is your from machine builder located? If they installed CX-One in another geographical region that might explain the weird language issue?
  23. Could not open file

    Me too, BUT symbols, tasks etc. in unrecognizable, weird looking language??