Search the Community

Showing results for tags 'example programm for encoder read in sysmac studio'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 345 results

  1. FinsGateway Help

    First of all, I apologize if there is a simple solution, if there is, I can't seem to find It. I simply want to make and HMI talk to a PLC using Omron's FINSGateway/SYSMAC window's drivers.. Heck, if I can get an example that uses a simple Excel spreadsheet talking via DDE that would help. I have been writing custom drivers in Windows for years to send FINS commands back and forth to the various Omron PLC's, based off of a bit change either on the HMI side or PLC side. Super fast since only the data that has changed is written back and forth... Lately I have tried using DDE (polling type) communications as some jobs require this and not custom drivers. We use Wonderware Intouch for the most part and have found their DA and OI servers for Omron to be terrible at communications on large IO installations. Their IO servers essentially send 1 packet per bit or word every x msecs over the network according to a wireshark capture instead of blocks of word ranges. I was told FINSGateway / Sysmac Gateway could be installed on a machine and map via datalink( or the sorts) PLC memory to  psedo PLC memory on the windows computer; that the local computer mimics a PLC. The third party application can then read the local memory many times faster than going across the network to get it packet by packet. I can't seem to find a simple 'DDE' type interface with FINSgateway whether trying to use it locally or to a remote PLC. Usually a Topic name and an Item / Tagname....  I have used these DDE interfaces with other brand PLC controllers and their local driver, but can't find squat with the Omron Driver.  Usually you specify in the HMI a tagname and it is pointed to a 'TOPIC' and 'ITEM' that relates to an address in the PLC. Anyone have any type of info on this? I see posts in forums about doing this, but can't find any specifics. Again, I would think this would be basic beginner stuff, but can't seem to find any info on FINS/SYSMAC gateway  and how to make a third party app talk to it. It's been around for many years so I find this odd. Thanks for your time..  
  2. I am beginning my first project with the newer NX platform and am a little confused by the description in the manual vs what is actually in the sysmac setup.  The manual makes it sound like you can adjust the range settings for the card, but I don't see any where to do it in the setup.  I also don't know what the Index and sub-index columns mean, so I am wondering if this is a back door to access the range settings? 
  3. Hey was just curious if anyone has come across the error message for Sysmac Studio posted. I have uploaded an image. Essentially what happened was I was using sysmac studio, went for lunch and it wouldn't open when I got back. I uninstalled v1.23, ran the remover (1901) and reinstalled it. Still could not open without the error. I uninstalled and tried installing V1.13 (oldest one I have) and again am getting the error. Any help would be much appreciated. Thanks, DJ  
  4. Hi, Now I am using Sysmac Studio - NA HMI. I am facing the problem of Data edit tool here I am unable to give Indirect address. Like this address HM15_Recipe_hmi(Index_No).SetPoint_1 But If I give direct Address its working HM15_Recipe_hmi(8).SetPoint_1   I Hope someone give the solution.    
  5. Hello everyone, Working in Automation for the first time as a Co-op student so i'm fairly new to PLC's and the Automation field in general. I've recently been tasked with converting a RSlogix 5 program from an old PLC 5 project into a Studio5000 project. I referenced the manual (I'll attach link below), and had no issues using the RSlogix Project Migrator tool that I downloaded off the Rockwell website. My problem is that once I convert the program, my I/O tags that were originally sequenced in octets(0-7, 10-17, 20-27, ...) from the RSlogix 5 program, are switched into a sequential scheme in Studio5000 that just increments them in order (1, 2, 3, 4, ...). I hope this make sense, but basically the first seven tags match between the projects, but then I:010 in rslogix 5 is equivalent to I[8] in 5000, I:011 is I[9], and so on and so forth. Has anyone had this issue before and found a way to have Studio5000 keep the original octet scheme? I don't see this normally being an issue, but the customer has specifically asked that the I/O tag names be kept the same as the original program. Thanks for any help. - Ben   Converting PLC-5 reference manual link: https://literature.rockwellautomation.com/idc/groups/literature/documents/rm/1756-rm085_-en-p.pdf
  6. Hello all. i am new with this plc. I have created a message to send to my device via network configurator everything works properly. I asked if there is the same possibility to send the message through Sysmac Studio I enclose the photo. My device is Encoder Sick AFM60A, it is for setup preset. with Allen Bradley i use send message. we have the same possiblity with Omron? Thx all
  7. Newbie - Help. on Omron Sysmac S6

    Hello- I am looking for some existing code to reference to try to troubleshoot an old machine.  It has a Omron Sysmac S6 console and I've been able to get the individual inputs and outputs to activate via the console, but the code that is in the machine seems to not be correct.  I suspect someone got in there and overwrote a bunch of the initial lines of the program.  Again, I can control the machine manually through using the console, but want to now automate it.  I've done the program checks and have a whole host of errors, including double coil errors, a missing IL error and circuit errors.   Ideally, I'd like to see what the code looks like to "start" the machine with a button (input 9) as an example and also see how that input can keep one output "ON" or running constantly (output 27) while then activating several outputs in sequential order, individually for a set period of time or until they activate a certain sensor (as an example input 6).   I've mapped out and am attaching what I believe the process flow to be.   I am also attaching the code as I pulled it off the machine.  Again, I don't believe the code to be correct.  Thank you for reading this. Any help would be greatly appreciated.
  8. There appear to be bugs with the EditVariable method that are not documented anywhere.  Firstly code below will not work and at same time Sysmac will not report this as an error where the variable to be edited is declared inside a subroutine. The program will compile fine but keypad will not appear when the sub is executed. However, if the variable is declared in the Global Variables table, the keypad will appear and the variable can be edited. I have also tried declaring the variable as Public out side of the subroutine and keypad still fails to appear. Sub EditValue     Dim Index As UShort     EditVariable("Index") End Sub Second issue is that EditVariable will not work if the variable to be edited is an array using variable as the index into the array. For example EditVariable("myArray(Index)") will not work whereas EditVariable("myArray(1)") will work. The above issue also appears when using a DataEdit object and trying to use an array with a variable as the index as the variable of the data edit object. Stupid thing about this is that MinimumValue and MaximumValue fields in the same DataEdit object will take an array with a variable as the index. Has anyone found a way around these problems?
  9. Hello, Does anyone have a pdf version of the user manual? Thanks...
  10. Hey, I am fairly new to the NA screen so I didn't get time to research much but for some bizarre reason, if my alarm message is long instead of going to the next line it just continues. Is there a specific way of creating a multiline alarm. Any suggestion or if you have inside for a crash course on NA screen would be helpful. Thanks
  11. Sysmac HMI

    I am fresh out of school and new to automation programming. My employer has asked me to come up with a way to show through the HMI the position of an encoder. Are there any HMI tools that do this in sysmac? Again I have limited experience.    Thanks
  12. Hello:   I need to link  a lot of variables, pointing to CIO address, like "AT" field, but is a large volume of tags to create, so, I have a chance to assign a memory location to a variable in ST like:  my_tag := %100;  (trying to assign tag address to CIO 100) ? If not, there is a method to import tags from a Excel ?   Thanks.    
  13. Hello:   Im new on this foroum, and Im glad to become a member, and new on the Sysmac studio too . I have the following ST program line: My_array[0]:= y[0];   Where My_array, is a array of bool, and y array too. After load and all, on monitoring return a "!" Sign, and trying to change value retuns "Failed to write variable, check if variable or memory area are alloed to write". I tried to move both arrays from global to local, and change adressing in "AT" field, witout changes. Any help will be wellcome. Thanks in advance Dante  
  14. C-mode hostlink library for NJ/NX1P or CP1L

    Anyone knows if there is a C-mode hostlink library for NJ/NX ? Also, a C-mode hostlink library for CP1L could be helpful, to translate such a library to work with NX1P is probaly less work whan writing a new library.  Maybe Omron France has developed such a library? - they seem very active..   Background: Looking into writing a programmatic c-mode hostlink master for NX1P12, this is for connecting the handheld NSH5 HMI to the NX1P12 via RS232C using a CIF01. I have the hardware set up, and an machine built, expected some compatibility efforts by Omron.... but the NSH5 seems to talk C-mode hostlink, and the CIF01 only seems to support the FINS version hostlink.   On the NJ you can of course add an SCU module, thus not need a library.  But working with NX1 ( due to limited space available ), you are dependet on available CIF-modules which do not support C-mode hostlink.  
  15. How to watch the value in decimal directly in the ladder page ?  Default Hexadecimal The only way I can do it is in Watch Tab and I/O map per example Thank you
  16. i am new in indusoft web studio. i am facing a problem about communication of indusoft with plc.   i am communicating with plc through fx2n-422-bd card.   can some one guide me the steps of communication.  he/she will be a life saver.. as i am  in a deep trouble
  17. Omron Servo Encoder

    Hello All  I am new to PLC programming , i have a question regarding omron PLC and High speed counters. I am using Cp1H-XA model plc . I connected HSC port 0 with a encoder and i was able to get the speed of the encoder using PRV2 instruction. Now i am trying to connect the second  encoder from the servo motor that i am using to HSC port 1. I am getting the PV signal using PRV instruction . Is there a way to calculate the speed of the servo encoder connected the HSC port 1 using PRV command , since i can't use the PRV2 command for the servo encoder .   Thanks in advance .
  18. Hi. I am new to Allen Bradley PLCs and bumped into the following issue, that I cannot find any solution to. When trying to add a module to the I/O configuration I get the attached error, error code 80131940. This prevents me from adding any hardware configurations in Logix Designer. I have tried to reinstall Logix Designer and uninstall all AOPs. I am running V30.00.00 on a Windows 7 Enterprise SP1 OS. Your feedback is very much appreciated.
  19. How to set Homing parameter slot with _sHOMING_REF data. Please suggest me to setting MC_HomeWithParameter instruction or show example for using MC_HomeWithParameter instruction. Thank a lot
  20. Hi, is it possible to communicate between the Sysmac studio simulator and the CX-Programmer simulator? I want to test the exchange of data between a NX1P2 and a CJ2H, but I don't have the controllers with me. Thanks and have a great day!
  21. Hi Guys!   There is a task. I have a motor, and I can monitoring the actual speed. The question is how can I to determine the average speed, if I know just the actual speed. If the speed is zero, it must be ignored. So I have to measure when the motor moves. Anybody have any idea? How can I solve this problem. RSLogix 5000.  Thank you.  
  22. Torque Control

    Hi, For my system I use the functions Mc_MoveAbsolte and Mc_TorqueControl. my problem is when i use absolute function after torque control for zero point. the servo turns the torque point control. For example: Target 1: 200 mm target 2: 150 mm Target 3: 240 mm ( Start point of torque) Taget 4: 330  mm (end of process) Target 5: 0 mm After "end of process" the servo turns  to "start point of torque" Can you help me please    
  23. Hello,  I have a NX1P2 controller that would control a DC motor, currently it's open loop. I can control the speed and the direction. I'd like to add an encoder to it. The motor I have is from MidWest motion S27 series and they told me I can use their encoder but the problem is it output TTL My question is, how do I read this encoder output in the PLC since it's TTL?  Second, is there a high speed counter in Sysmac Studio for the PLC I have?  Thank you everyone in advance   
  24. My apologies for being a newbie on this, but could someone save me on this... I have a Viper 650 and an eMB-60R controller which I want to control by ePLC connection using an NJ501-1300 PLC unit, SYSMAC Studio with EIP Adept Library for Robot... All are starting up well, and I connect all components to a switch hub...  But following the ePLC guidelines, the IP Address showing on the controller is 172.16.132.111 I change the IPV4 IP Address on the PC settings to 172.16.132.10 and the subnet to 255.255.0.0 but the Adept IP Address Setting Tool on SYSMAC doesn't detect the Robot IP Address, also i tried ipconfig on command prompt which shows a different IP Address IPV4 169.254.197.75 and subnet of 255.255.0.0, I changed the previous setting on the PC setting to 169.254.197.10 with the same subnet. But still PC doesn't recognize. I tried both configurations if ACE Software can detect it but the same ACE can not detect it also... Appreciate any thoughts on what's wrong in my configurations. Thank you.
  25. Hi all, I uploaded SW from working PLC NJ301 1100 v 1.9. Uploading worked, but when I tried to open program, all rungs were empty (see picture). Does anyone know the cause?