Search the Community

Showing results for tags 'sysmac hyphen dash ascii'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 85 results

  1. 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.
  2. Fuel tank level automatic report

    Hello, I have a fuel level reading system in a 2000 gallon diesel tank. the system has a slc 5 05 of rockwell. I need to connect the system to a printer located in an office 300 meters away from the tank. can someone give me lights about the type of printer I need and what communication technology to use, preferably wireless. Thanks.
  3. 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?
  4. Hello, Does anyone have a pdf version of the user manual? Thanks...
  5. 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
  6. Hello, I'm looking for sample program to communicate Cognex DataMan 262Q, now i have connecting by Tags, 496 bytes input/output, but in manual i see :  
  7. I'm very new to sysmac. I am trying to display the current date and time in the corner of each of my HMI pages. I saw a button labeled date and time. It is asking for a variable for behavior. Do I need to write some basic structured text or FB in plc to get date and time and pass it over? I figured the button would update itsself since when I placed it on the screen it had the current date and time and refreshes every time I leave the page and come back. 
  8. 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
  9. 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.    
  10. 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  
  11. 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.  
  12. 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
  13. 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
  14. 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!
  15. 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    
  16. 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 I change the IPV4 IP Address on the PC settings to and the subnet to 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 and subnet of, I changed the previous setting on the PC setting to 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.
  17. 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?
  18. The hyphens (dashes) in Sysmac Studio have been replaced by ASCII "boxes."  Anyone having this problem?  See attached screenshot. Sysmac Studio 1.220.80, Windows 7
  19. SCPI Communication

    Has anyone been able to set up back and forth communication with a device that uses SCPI? I have a D2-260 and 5 Kikusui power supplies. The PLC already utilizes a RS485 Modbus network and also has an Ethernet connection. The power supplies only have a RS232 connection and uses SCPI commands. I have searched the web over and there are Modbus to ASCII converters but how to make it where to catch the response in a register for the PLC to find? I am open to anything, 5 small PLCs to there is no possible means to do this. Any direction would greatly be appreciated!
  20. Homing servo motors

    Hello everybody, I have a question about homing servo motors. I have a project with new servos from Omron and I would like to know what is the best way to do homing for the servos and how often. Before when we have servos with encoders I was making special homing sequence and was calling by some event. I heard that new servos from Omron pretty smart and remember own position without batteries. So with this 'new generation' of servos what is the key to keep machine robust, easy for motor replacement without useless programming stuff. Regards, Scotty
  21. I currently have certain amount of Recipe data located in form of Excel file on to a PC with static IP address. Is there a way to get that data inside the Nj501 without using an SQL server as I currently have NJ501-1300 which doesn't support SQL. I am okay to send data to the SD card I currently have on NJ PLC as it is easy to get data from SD card to the NJ501.  If there is any example code or a link that helps me create i would be helpful. Thanks in advance. FYI: I am currently using NB10 HMI with NJ PLC.
  22. Struct as FB input

    Hello,  I am trying to define a struct as an input variable for a Function or Function Block. For example the function AddDelimiter (This is a standard Sysmac function), has a input variable with the variable type Struct, an it is possible to couple a struct to this input (See picture below). If i try to make my own function block with a struct or Structure as an input data type, i get the following error (See picture below). When I try to define a struct from the data types (In this case struct: Test) it doesn't give a error. But when I try to couple a struct to this input, that is a layer deeper than the function block struct i get the following error (See picture below). How can i define a struct as an function/ function block input? Thanks in advance.
  23. Remote I/O weidmuller

    Hello,  I am trying to connect a Weidmüller UR20 Ethernet I/P  (Hardware version 1) to a Omron NX1P2 PLC via Sysmac Studio. I have imported the Weidmüller EDS file into Sysmac studio and connected two tags to the target variable 101 and 102 (I also tried using a array of bytes and a single word).   When I transfer this configuration to the controller and set the controller in run i get the following error: Tag Data Link Connection Failed (0x84070000). I have tried to update the firmware of the Weidmüller I/O but this doesn't seem to help. Also the web interface shows no connection with the PLC. I also tried to setup the connection with the CX network configurator but this gave the same result. Is there someone who can help me with this problem Thanks in advance.
  24. Is there any way to establish a variable as min/max value of a gauge on sysmac studio?
  25. I am using an Omron NJ controller and a Cognex Dataman 260 bar-code scanner.   At this point I can trigger the scanner and receive data from the scanner via ethernet/ip. My issue is in converting the response from the scanner to something human readable. The bar-code I scanned reads "872-3GSq".  The results of the scan are located in the variable Dataman_to_NJ[8]-[11]. At some point I know I need to use the SWAP function but I believe my lack of data type knowledge in this system is hindering me. How can I convert the value in Dataman_to_NJ[8] to the string "87"? Any assistance would be appreciated.