Search the Community

Showing results for tags 'ASCII Instruction'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 74 results

  1. I am noticing a problem where i am using MOV instruction and writing literal text into source and String datatype in destination. It works fines in one program but doesn't on another it show an error Invalid Data Type. Argument must match Parameter Data type. I know what the error is and why but my question is why is it working perfectly fine in 1 program and not on another.
  2. Hi All, I'm looking to setup communications between a digital force gauge and an Omron NX-CIF1010 RS232 serial communication interface.  Here is the Output Protocol from the Force Gauges Manual: Output Protocol RS-232 Parameter - Baudrate: 9600 - Data-Bit: 8 - Parity: none - Stop-bit: 1 The measured value is requested by the PC by the ASCII Sign “9”. I've tried to follow the youtube video, "How to communicate via RS 232 using an NX CIF to a PC" however setting up communication between the force gauge instead of a PC is proving difficult. How to communicate via RS 232 using an NX CIF to a PC - YouTube This is quite new to me so I'm trying to get my head around it at the moment so please correct me if I'm wrong. I'm reading values from the Force gauge in ASCII and I need to convert those values into another numerical value data type. I've seen in CX-Programmer, ASCII values being converted into Floating Point values using the "FVAL" instruction using Data registers however I can't use the same approach in Sysmac Studio. Do I need to clear the serial buffer everytime before I look to receive a numerical value from the force gauge? Here are details regarding the screenshots I've included below: 1) CIF101 Parameters to read Force Gauge Output Protcol in Sysmac Studio which should be matching the force gauges output protocol. 2) CIF101 IO Map in Sysmac Studio - ** I'm unsure if this is where I need to be linking the "RcvDat" input of the "NX_SerialRcv" function block? 3) CIF101 Sending Data Function Block - "NX_SerialBufClear" function block setup - "port_id" data type has been changed to "_sDevice_Port". 4) CIF101 Receiving Data Function Block - "NX_SerialRcv" function block setup 5) Global Variable - Array [0..3] OF BYTE - used in "RcvDat" input of "NX_SerialRcv" function block  6) Internal Variables Created  to send and receive data 7) Force Gauge RS232 Configuration 8) Force Gauge Output Protocol   Any help would be greatly appreciated. Paul  
  3. Hi guys, I am having difficulty in understanding and implementing the scaling of 32 or 16 bit binary data using Mitsubishi DSCL2 instruction. I just don't understand what to pass in its parameters particularly s2 parameter. I tried many variables but I get errors.  Please can someone provide an example how to implement that and scale any float no, for example 1200.00 to 100.00 using this instruction with output scale 0-100 being 100 at maximum for the sensor value of 1200.00  I am attaching pdf for DSCL2 instruction taken from Mitsubishi manual for help. and the error I am getting on my melsoft. instructions_manual.pdf
  4. Hi all  I need to view a project in instruction list format on Mitsubishi GX Works 2. On GX developer the shortcut is Alt + F1 or View tab then press instruction list.   Thanks 
  5. Hi all,I'm completely new to ASCII and trying to figure out where I'm going wrong here.Application: I need to send 2d barcode data to a KGK Jet model CCS3000L Inkjet printer. Only protocol possibility is ASCII. PLC I have is a Micro850, and the only port option for ASCII is the serial port. I modified one end of a 2707-NC11 cable to connect PLC TxD to printer RxD, PLC RxD to Printer TxD, and PLC SG to Printer SG. I jumpered CTS and RTS at the printer connector, and the 2707 cable I'm using doesn't have wires on the Micro850 CTS or RTS pins.Printer company verified that I can just jumper RTS and CTS on their side and not connect their DTR and DSR pins (since I'm not using hardware handshaking). I don't really need any flow control for the application ( I don't think...again, ASCII noob here).Do the CTS and RTS on the PLC side need to be jumpered? Does the DCD pin need to be jumpered or connected to something if I'm not using handshaking?I downloaded the Micro800 ASCII read and write functions and function blocks from Rockwell library, and they seem to be working, except that I keep getting ABL error id "7". This error states, "Cannot complete ASCII send or receive because channel configuration has been shut down using the channel configuration dialog box." I have the serial port enabled and configured to ASCII, no handshaking, baud 9600 same as printer, no parity check, 1 stop bit, character length of 8.Any help in pointing out what I'm doing wrong or things to try would be greatly appreciated!   ASCII_TEST.ccwsln
  6. Hi guys I have an control logix plc im looking for a module which is the same as 1769-ascii module. I know that module is for compact logix. Unfortunately i didnt find a good one for that purpose.  Anybody can help with that ? Thanks ahead.         
  7. Analog

    I have plc mitsubishi A2USHCPU-S1 and there is already a program in it. The problem is, the analog input data doesn't want to be saved. How do i find the analog address instructions? Can anyone help?
  8. Sorry new to working with PLC's,  I am trying to write text to a ST file on an RSLOGIX 500 machine, its for a LED display, I am just trying to update the screen to new texts, it all works I am just having trouble inputting the text properly into the string file. I would like to read about it if anyone can point me to a good document or manual that can explain what characters to use?  I see many posts about using VBA using Excel work on RSLOGIX 500? But would like to know how to do it manually first.  Thank you
  9. Wait Command

    Hi, I'm quite new to the PLC programming, I saw this delay input in one of the videos, that automatically switched to 1 after a set time, it wasn't a timer, just an contact input with time delay
  10. Old Cqm1H cpu51

    Looking for information about an APR fuction for analog output. Thks
  11. Hello people! I'm using a NX1P2 controller combined with a CIF105 serial card installed on it. For my project, I get some data that are in ASCII form and I want to keep that form when are extracted in a .csv file. I have established the communication for getting the data but, the problem is that I cannot extract the data in the ASCII form. Data extraction comes in Hex form. I use the NX_SerialRcv instruction for the communication and the AryToString conversion for the data. When using the Watch Tab Page I can display the data in ASCII form but, as far as I understand, this is only for online monitoring. I went through topics here and OMRON manuals for finding any Hex to ASCII conversion instruction but the only info I came across was for CX controllers which cannot be implemented to NX controller. Is there any similar instruction for NX controller or I should create a new Library for the conversion? Any tips and/or a sample would be highly appreciated! Thanks! Man31    
  12. Now I working on omron CP1H PLC, i'm receiving ASCII number from another PLC which is something like this  "#3031 #3030 #3030 #3030" which mean 01000000. How to convert the ascii number to real number or bcd without separate them? I know how to convert them which is using HEX but its turn out the number will separate into this 0100  and 0000.
  13. I am working on project where I need to program delta PLC to receive ASCII code from scanner. I anyone know how to program it helpls me alot.
  14. Hello all, I am working on a project where I am communicating with a Mensor CPT6100 pressure transducer using a Micro-850 PLC. For this, I have used an AWA instruction to write some ASCII characters to the sensor. The sensor then responds to the write instruction by sending ASCII characters to the RX buffer and I used ACB and ARD instructions to read the ASCII characters. Now, I have set the ACB trigger type to 0 (msg triggered only once) and it successfully reads from the sensor. However, when I set the ACB trigger type to 1 (msg triggered multiple times), I do not get any reading in the ARD block. As a matter of fact, the ACB Q bit switches off every time the program is executed when the trigger type is set to 1. I am trying to get continuous readings from the sensor, but when the trigger type is set to 0, the program latches on to the first and only reading and it won't change. My question is, how can I change my program so that it can continuously and autonomously read from the sensor without me having to manually trigger the AWA and ACB instructions every time. I am attaching the program to this thread for your reference.  ASCII_Test_Copy.ccwarc
  15. I have a problem trying to scale a floating number coming from an HMI to a value to use on PID instructions.My problem is on the scaling instruction.Whenever i try to run on cx simulator it gives me an error My setup of the scale parameters are (using SCL3(487)) D616 #0000 D617 &350 D618 #FFFF D619 #FFFF D620 #0000 My ladder to use the float number is: *F(456) Value +10,0 D2120 FIX(450) D2120 D2062 SCL3(487) D2062 D616 D2072 The error that throws is 0x80F0 Thanks in advance for any help PS Also tried all Scaling instructions.I think my problem is the setup of parameters for scaling instructions  
  16. Hi guys, so i'm trying to send data to plc omron cp2e-n40dra via RS232C, I use RXD and TXD but it looks like my programs are wrong, the indicator of RS232C are on everytime i send the data so it looks like PLC receive my data but when i see it in memory PLC D i can't find any data stored. Can anyone help me please? I attach my Gdrive for pictures since i can't upload pictures in here *The data that i sent is in ASCII https://drive.google.com/drive/folders/1GPXa1U1PLMU2WKmo4YRPe32wHHyVCGUv?usp=sharing
  17. I have been working on a PLC project that requires sending ASCII commands/queries to an external pressure transducer using the Micro 850 PLC (2080-SERIALISOL module) via serial port communication (ASCII protocol) and in response the PLC would read pressure readings from the transducer. I was able to write a ladder logic program that reads ASCII code from the transducer and converts it into string and inversely converts string output from the computer to ASCII and sends it to the transducer. However, I am uncertain as to how I should send the command string from my computer so that the external transducer receives it, recognizes it after the <cr><lf> is encountered and sends a pressure reading. Any suggestions as to how I can type in commands from my computer and receive responses from the transducer?
  18. I have a function that reads ASCII code from a transducer, converts the code into characters and places the characters from the serial buffer into a string. Now, I am trying to convert the value in the string into a 64-bit float number. Any ideas on how to do that on the CCW? 
  19. Hi there! I recently discovered this forum and I find it pretty useful for sharing and learning about PLCs. The thing is I'm trying to make a Stack using the SSET(630) instruction in a CJ2M PLC. Reading Omron's W340 manual I saw that PLC memory address for the different stack channels is represented as "00010000" to "0001000F". So, in order to set the last stack word address as well as the pointer's address, how do you know those values? Or am I just misunderstanding something? Thanks in advance!   Edit: Solved, the definition of the stack was wrong!    
  20. RS2 instruction

    Hello Expert,   I've problem regarding Instruction RS2. I can receive and send data, but my problem is each time I send data it will always add 0 at the back. I define array data for sending:    POU_01/DATA_SEND[0]    769       00000011 00000001    H0301    --    #0301    --    Word[Unsigned]/Bit String[16-bit]    VAR    D2235    %MW0.2235        --   POU_01/DATA_SEND[1]    0            00000000 00000000    H0000   --    #0000    --    Word[Unsigned]/Bit String[16-bit]    VAR    D2236    %MW0.2236        --   POU_01/DATA_SEND[2]    2560     00001010 00000000    H0A00    --   #0A00    --    Word[Unsigned]/Bit String[16-bit]    VAR    D2237    %W0.2237        --   POU_01/DATA_SEND[3]   50637  11000101 11001101      HC5CD    --   #C5CD    --    Word[Unsigned]/Bit String[16-bit]    VAR    D2238    %MW0.2238        --   Data receive on Serial Terminal : "01" "03" "00" "00" "00" "0A" "CD" "C5" "00"  ==> "00" last value I tried to figure out how can it get there ?   I already check for terminator character already set off. I use channel 2 using FX-485-ADP-MB. I set my serial D8420 ==> "0C81".      
  21. RS2 instruction

    Hello Expert,   I've problem regarding Instruction RS2. I can receive and send data, but my problem is each time I send data it will always add 0 at the back. I define array data for sending:    POU_01/DATA_SEND[0]    769       00000011 00000001    H0301    --    #0301    --    Word[Unsigned]/Bit String[16-bit]    VAR    D2235    %MW0.2235        --   POU_01/DATA_SEND[1]    0            00000000 00000000    H0000   --    #0000    --    Word[Unsigned]/Bit String[16-bit]    VAR    D2236    %MW0.2236        --   POU_01/DATA_SEND[2]    2560     00001010 00000000    H0A00    --   #0A00    --    Word[Unsigned]/Bit String[16-bit]    VAR    D2237    %W0.2237        --   POU_01/DATA_SEND[3]   50637  11000101 11001101      HC5CD    --   #C5CD    --    Word[Unsigned]/Bit String[16-bit]    VAR    D2238    %MW0.2238        --   Data receive on Serial Terminal : "01" "03" "00" "00" "00" "0A" "CD" "C5" "00"  ==> "00" last value I tried to figure out how can it get there ?   I already check for terminator character already set off. I use channel 2 using FX-485-ADP-MB. I set my serial D8420 ==> "0C81".      
  22. String to Hex

    i want to convert my ascii string to hex value. I used HEX function but result is not what i expected. My string: 'BD1' > expected converted result is 0BD1H .. however it return me 01DBH ... Value from Device Memory Batch Monitor: D40: 4442   ('DB') D41: 0031 ('1');   May i know how to convert string D40 to Hex? thank you for viewing.  
  23. A little background information here, I am trying to create a moving average so I accomplished it with the code (imaged attached) The problem i am having is the AVE instruction error bit goes true. it leaved me with a result of 1.#QAN  I did some googling and it said this is typically done when dividing by zero?? so i added a NEQ to 0 prior to loading the array. then it happened again. so i put the error bit in front of the FFL so it will stop loading the array when i get the error bit so i can see what values are in the array when it errors out. Has anyone else had this issue and what could you do to resolve it? I haven't had any luck find something that points me in the right direction. Thanks in advance for your help.
  24. Hello, I am trying to receive data from a scale via rs232. my setup; compact logix l18er with a 1734-rs232ascii point IO module to receive the data. I am receiving data from the scale, but I have very little understanding of ascii, so I do not know how to convert the data I am receiving to something use-able. any help on how to convert the data to something I can use or where to even start would be much appreciated. using a scientech ZSA 210 scale https://scientech-inc.com/media/downloadable/files/links/1/2/12222-d_rev-f_instruction_manual.pdf
  25. I am controlling the powerflex 527 drive with MSO instruction, first setting the drive on and then running the motor with MAJ instruction. After MSO instruction, motor is rotating about 2 sec and then stops to wait the  MAJ. I have not find any solution for this. My configuration is frequency control, no feedback, sensorless. One hint i found from the rockwell pages but it did not help me. Rated slip speed is set to zero.