Search the Community

Showing results for tags 'how to access bits in word variable in function block??'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 110 results

  1. I have an Omron NX PLC  NX1p2 which Supports EtherCAT . also I have Balluff BNI00HA Ecat Block(IOlink Master). I have setup communications and connected a BNI004K balluff I/O device. I managed to get inputs and i can read it as well. but to set the pins of BNI004K as outputs i have to configure the module by accessing its Index and Subindex. I tried with IOLwrite Block but it says 16#4802 error. Also an Engineer from balluff suggested me to use CoE block but while reading the description is said CAN over EThercat. WHile my devices are IOLINK.. If Anyone can Help.Please. SS1 - Is the error I am getting on IOLink instruction SS2 - Is what i did. which is an IOlink Write block from Omron SS3 - is what balluff Engineer suggested.
  2. Hi,  I write a CAM function to sync 2 axis (Rotary & linear). i am using a virtual servo as master, and 2 physical servos as slave. The problem i facing is, with the exact same CAM profile setting, when difference speed used will give difference result of movement. Below is my setting, Master axis     linear motor move 0-180degree   0-500mm 180-360          500-0   when running with slow speed, it move following the CAM profile setting, however, when moving in fast speed, the linear motor will only move halfway then start to moving back 0 already. Has anyone encounter this issue before? is it i missed out some setting? Thanks.
  3. Hi All, I need access to a the Safety function blocks within a safety CPU using sysmac studio on a machine we are upgrading.. Is there a generic password available to gain access? Best Regards, Paul  
  4. Hello, In GX Works2, what do asterisks before function block input and output variable names mean? Thanks,    
  5. Hi All, Has anyone used a Compactlogix PLC to send a SMS via a Router? I've seen it in the past using a serial connect using ASCII. Unfortunately I can't use email as network coverage can be bad at times.
  6. Hi All, I am Data Transferring Arrays of WORD's from a HMI to NX PLC. This Transfer may be a variety of data types, Likely just UINT and STRING[20]. It will be Imported to NX as an Array of Word What im trying to do is Populate my Structure from this Array of Word. I can do this by mapping them individually just fine. But i was hoping i could add them automatically. Much like when you assign EthernetIP tags and can link them to a structure and User Offset the Bytes. But i cant seem to Link the Array of Word to the Structure e.g. SENSORS_STORED:=DATA_2_IN; Says its impossible Anyone have any ideas how i could Populate this structure from a WORD Array without manually mapping and Converting Each? SENSORS_STORED.Fixture_ID:=WORD_TO_UINT(DATA_2_IN[0]); For Example is a workable way but is long winded and was hoping there is a easier way Thanks in Advance Dann  
  7. I'm having a problem creating variable tag array in Citect SCADA V7.40. I looked every possible help, user guide... but no matter how i set array I cannot change value of any element of array beside first one. I configured my variable tag as shown below: Tag name: TestArray I/O Device: Internal (it's an OPC Factory Server) Address: V500[5], %MF4000[5], I2[5], F2[5] (I tried every one of these for REAL or INTEGER type based on user guide/forum posts) Data type: REAL, INTEGER   I tried every one of these but without success. If i try to set value of variable tag array element, example TestArray[1] and TestArray[4], by typing value in Number field (in Citect Runtime) every element of an array is giving me message #ERR, except first one. Other than that in Citect Runtime in All variable tags window, I can see TestArray tag as a single tag, not as an array Note that i'm not using these tags in Cicode but in Graphic Builder / Runtime. I need about about 50 user defined value tags to be sent to SQL DB by SCADA so remote PLC can read those values in order to define state of outputs. I would highly appreciate any kind of help, any tip. Thanks in advance!
  8. Version 1.0.0

    40 downloads

    PRNG algorithm packed into a functional block. As an example of using ST language for Omron CJ series PLC.
  9. Function block RANDOMIZE on ST View File PRNG algorithm packed into a functional block. As an example of using ST language for Omron CJ series PLC. Submitter drYurban Submitted 10/05/22 Category PLC Sample Code
  10. Version 1.0.0

    29 downloads

    An example on ST is the definition of the fronts of a discrete signal.
  11. Function block on ST for algorithm DIFU DIFD View File An example on ST is the definition of the fronts of a discrete signal. Submitter drYurban Submitted 10/05/22 Category PLC Sample Code
  12. valve_control

    Version 1.0.0

    49 downloads

    A working example of an FB to control a valve from an HMI panel. Controls closing/opening times, plus a little visualization.
  13. valve_control View File A working example of an FB to control a valve from an HMI panel. Controls closing/opening times, plus a little visualization. Submitter drYurban Submitted 10/05/22 Category PLC Sample Code
  14. Hello Everyone I am new on this forum. As an electrician in Denmark, I have just gotten a fountain to maintain. The control cabinet and pumps are all underground in a couple of wells.   There are a lot of monitoring and time is spend / wasted lifting the heavy manhole covers and driving to and from the wells. I would like to install a plc to monitor the few settings I really need. Are there some with experience of how and what type of equipment?  I am considering a siemens LOGO with a communications module and just buy a sim card.  Is it better to use prepaid 2G, 3G or 4G or only data sim card?  Also with or without pin code? It is not possible to establish a wired communication connection but the wells have of course 230 V mains and is very close to a phone tower. Yours faithfully Morten Lund
  15. GX Works3 Projectlib Locked

    Hello, I have a problem that I need to solve in a PLC program has it's projectlib locked.  I work for a company that contracted a PLC programmer before my time to program their new version of their control cabinets. The company did not write any specific contract with the contractor and just relied on his work. The guy later delevered a buggy software that is kind of functional (the bugs came up at the commissioning after the guy was paid and now he refuses to help or to provide more consultations). I have as a task to freshen this up and make it work without bugs, the problem is that the Projectlib is locked and I cannot access the source code.  The only thing that I can changes that I can make to the code is to put some logical circuits between the I/O of the already existing function blocks, which solved some problems, but not all and it keeps one of the most important ones as well. Anyways, that's my story, so now my question is, is there and possible way of unlocking the projectlib? Any feedback would be highly appreciated. Thanks in advace!
  16. Hi, I have quite a noobie question. I want to create a function block to do some simple operations on 2 variables. Both variables are In/Outs (see picture attached). How can I make this function accept variables regardless of the data type? Given these is just simple math I am able to use the same instructions in REAL, INT, UINT, etc. But, the function block only lets me assign one Data Type to the In/Out variables.
  17. Hi all, I am a new user of VB.net on NA Omron HMI, and I need your help to solve a problem. In my case, I have to get a HMI global variable value in VB.net, but the VariableName is in an other variable (string). For example: Var1=4 Var2=6 VarName="Var1" I worked with a "SetVariable" function to modify the value of different variables, but right now I need to read the actual value, in the example values 4 and 6.  Do you have any suggestion?
  18. Hi all:   Hope somebody will help me with the below error encounter on the NA. I mapped a external device (NJ PLC) variable (which is a structure) to a NA Global variable and the structure is automatically created in the NA data type as expected. I then create a new NA global variable and defined its data type as the auto created structure. However i observe the created new NA global variable is highlighted with an error "a data type cannot be used by both mapped and unmapped variable ....." ( pls refer to the attached screen).  I have found and view on the Youtube this video :"Introduction To The NA DataTypes" (link: https://www.youtube.com/watch?v=VZxWnVn1CSY). that clearly show the "imported" structure can be used for unmapped NA global variable even there is some variable already mapped to external device variable (starting from the 3:50minutes mark of the video). In my NA program i would need to create such unmapped variable for my logic use. Also i observe that i was unable to delete the auto created structure from the NA Data Types even after i deleted all variables that are defined with that specific structure. How can i delete such auto created structure in case i want to clear off some of those unused data types. I am using Sysmac Studio version 1.30.0.17. The HMI Device created is the NA5-9W00 (version 1.11)          
  19. I am working on something different. I have a Signal Speaker that uses binary inputs to play a certain song based on source configuration. I have to send 24v to the inputs of the speaker. I have 5 of them with 30 different configurations. I am currently trying to do this in ladder logic, RSLogix 5000. Steps done. 1. Assigned the 6 outputs tag names. This is so that I can shift the program to other machines if I have to and I just need to change the slot location, or if I have an output go bad I can move it with ease. This works. 2. I  created the 30 lines of  5 columns to match the binary method. This works.    a. I can manually toggle the output to cycle thru the binary table. 3. Currently working on the logic that when a particular alarm is activated... I turn on the outputs needed to match the binary table. The problem is destructive bit reference on the coils.  I was researching some but don't know what direction to go. How can I call the same output on different rungs? I have attached the .L5X to show what I have programmed. 4. I know the first rungs are wrong. That is what I am trying to fix. 5. Would there be a better way to address this, if so how? Any help would be greatly appreciated.     Speaker_Alarm.L5X Speaker_Alarm.L5X
  20. Delta isp fb

    Does anyone have some delta isp function blocks they can share with me please
  21. Hello, On our DCS we have a button that will open an RDP connection to our PLC server and open the .mer file connecting the DCS to the PanelView HMI. This is supposed to be used for troubleshooting purposes only, but that is not the case. Is there a way to prevent operators from operating the HMI through the RDP while still allowing them to have read only access?   Thanks, Michael
  22. hello Every one,    I am using a CP1-L PLC and want to communicate to domino ax350i printer over TCP/IP socket programming. For socket programming, I used Omron Function Block CPU012_SendCommand.  I defined network ID and node address. However, I am getting 0502 error which means routing table is not set yes. So, how can I set routing table for both devices?. my PLC on 192.168.250.1 and Printer is on 192.168.250.123 node 7000.    Can any one suggest me best way to do.  Thank you   attached file is for what I did in setting and program for the communication.      
  23. Hi there, I am fairly new to programming serial communications, especially with Mitsubishi PLCs. Can someone walk me through in ladder logic how to bring in ASCII to the PLC, store the data in the data registers. Then send the data out to another PC once an 'X' input is satisfied? ASCII code would go like the following: C2,0,1,123,2,ABC,3,456,CR
  24. Hello everybody, i have some uncertainties going through my head. i am fairly new in PLC word, graduated last year, last 12 month i did project on Siemens PLCs, but now i have to expand my view with Mitsubishi. 1. i am working on project with several conveyors. for each conveyor type i have FB fairly similar to my FB in siemens. For all conveyor i am using same sdt containing 32 bits. So a have array[0..20]  of said sdt. But in fb i was not able to copy item from array, through input var containing index of that item to vocal variable, which i wanted to write back to the array at the end of fb. I tried different approach ->  using item from array *** input/output.  When monitoring item from array i can see, that variables i change in got2000 panel are in fact changing. But when i monitor fb itself, those same variables are not changing. i reworked this fb several times, for example when i found out that FB variables FB FXcpu cannot be set as retain so i would like to use it and i see no other way than make this fb work. :D 2. Is there possibility to us FB in another FB? I remember that i read some restriction about this, but now, i cannot find it. Thank you everybody for your responses    
  25. Hello from korea :)   actually i am new to company which i do freelancer job and i am not used to dealing machine with sysmac studio its hard to make things perfect...   its just simple thing move servo motor.. you can check my situation more closer if u see the picture that i uploaded   i think control servo motor By function named MC_MoveAbsolute4(Axis,execute, parameters......) i just use that function by put them in while loop so that i can check the move of motor but nothing happen lol   What can i do!