Search the Community

Showing results for tags 'modbus ascii'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 241 results

  1. 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
  2. Hey all,  So I am looking for some assistance because I am not understanding how the tags on an HMI and within a PLC are linked. There are no 'physical' buttons, just what is on the HMI. It is controlling a chiller. Communicates over Modbus TCP/IP. The PLC is an IDEC. I have some-what worked out how other tags are working when they are words being passed back and forth, but this one has me stumped. I've attached a few screenshots for referral. It looks like the run and unload buttons for the chiller are a single bit/BOOL toggle (but the chiller running latches itself in the PLC when the chiller starts to run). The stop buttons appears to be a parent for the single bit/BOOLs and when it is pressed it resets them all both on the HMI side and within the PLC side.  
  3. Hi there, I have a controller NX1P2-1140DT. I want to control a VFD with modbus serial communication. Can someone help me start from scratch ?
  4. CX-8190-Modbus Srv

    Hey guys, I am trying to communicate between a Beckhoff CX-8190 & a third party fieldbus module that supports Modbus TCP, now I am able to write/read to the fieldbus when twincat is running on the local machine (laptop), but when ever I connect to the device and run the same function block it doesn't write nor read to the fieldbus. I am assuming that the modbus server has something to do with it, so is there a way I can install it to the plc ?
  5. KINCO PLC as MODBUS RTU slave

    Hello to everyone. I hope you are doing well. I'm trying to establish a communication between my PC and my KINCO PLC. The manual states it supports MODBUS RTU protocol, so I downloaded two different Modbus Master simulator I found out: Multiway from OMRON and qModMaster. None of them seem to work properly. I attached some pictures of the messages I get. Multiway message qModMaster message I include the configuration of the communication parameters. PLC parameters Multiway parameters qModMaster parameters According to the manual, in order to play the role of Modbus master with the PLC it's necessary to configure some instruction blocks (I'm programming in ladder). However, I could not find any block to configure as Modbus slave. I don't know what else I can do. I'm in trouble with this task. Am I making some mistake? Thanks for your attention.  Kind regards!
  6. Serial communication with KINCO PLC

    Hello to everyone. Nice to meet you all. I am programming a KINCO PLC model HP043-20DT using ladder on KINCO BUILDER. I need to establish a serial communication with my PC. The PLC has a RS485 port which I adapted it to USB to connect with my PC. The PLC allows, at least, two ways to establish serial communication: MODBUS or free-protocol. I've read the software manual and tried to reproduce the examples it provides using the instruction blocks for MODBUS (MBUSR and MBUSW) and free-protocol (XMT and RCV) communications. However, I could not receive the data on the PLC. I could effectively transmit data with XMT from the PLC to the PC and I could verify through a tool called Access Port. In relation to MODBUS, I am using a simulation tool called Multiway from OMRON, however, I get no response from the PLC. If any of you have some experience with this software or this device, I would like to ask you how could I solve the problem. Thank you for your attention. Kind regards.
  7. Hello everyone    I am working on modbus TCP protocols to communicate between SEW drive and Omron PLC CP1L-EM. I am following modbus TCP function block from Omron, But i have updated that block because of is not fit to SEW modbus communication. Currently, I am sending a control work to SEW but I am getting error on Modbus TCP from SEW drive, which is invalid data. So I am looking your help is you work with SEW drive before and communicate over modbus, then please let me know how to make a data string for read and write (SEW Drive function 23). I am using 3PD data structure.    Thank you
  8. IEEE-754 Floating Point

    Hi, Is there a simple way to convert hex value of IEEE 754 to real value in gx works 3 Regards, Ramkumar  
  9. Hi everyone, I'm new here. Thank you all in advance for the help you can give me. I have one machine with PLC Omron NJ101-9000, and this is Server in the Modbus communication. In the attachments, you can find the function block I used to communicate with 1 client. This work OK and I don't have problems, but I need to communicate with 2 clients at the same time. This block only admits one connection at a time. How I can connect 2 at a time? If I create 2 of these blocks, does each client need to connect to a different port? Do I need "open" this port in PLC configuration?   Thanks!
  10. Hardware IQ-F connected via Modbus TCP on the NZ2FT-MT works Fine with normal IO. Now i want to run the NZ2FT-C24 with an modbus RTU protocol, i'm planning to make this. Anyone having an example for the NZ2FT-C24, what can help me?
  11. Hardware IQ-F connected via Modbus TCP on the NZ2FT-MT works Fine with normal IO. Now i want to run the NZ2FT-C24 with an modbus RTU protocol, i'm planning to make this. Anyone having an example for the NZ2FT-C24, what can help me?
  12. Hi. I have this project where we read out data from temp sensors and vaccuum stuff. We use Pfeiffer vaccum cpt 200 for the vaccuum, and we create a frame to send to the modbus unit to pull a value from example '306'. With all the current items we pull data, all the values are only updated every 5 seconds, is there a way to perhaps pull several frame/addresses in one request per device? Current codes we read, some are in sequence of each others, but more has a bit of gap like 00, 02, 306, 307, 398, 330 and so on.    
  13. I am trying to create a simple `Hello World` Modbus TCP/IP program using Twincat3 and virtual PLC (PLC running locally on my computer).   I have set up a LabVIEW Modbus TCP/IP master + slave program (both of which are working see screenshots below).  I can send data between LabVIEW's master and slave programs. And also read the data from Python script (so I know for sure they are all working).  Now I have tried to create a Twincat3 program to set some registers using Beckhoff example What I have tried:  - I have tried changing the ipAddr parameter to: 'localhost', '', ''  - Also I have tried the nUnitID set to: 0, 1, 16#FF (16#FF as specified by Beckhoff docs) This is my Beckhoff code:     PROGRAM MAIN     VAR         ipAddr         : STRING(15) := ''; //Tried also and 'localhost'         M0 AT %MB0     : ARRAY [0..3] OF WORD;         nValue         : ARRAY [0..3] OF WORD;         fbWriteRegs : FB_MBWriteRegs;         bWriteRegs     : BOOL;     END_VAR           IF NOT bWriteRegs THEN         nValue[0]                := nValue[0]+1;         nValue[1]                := nValue[1]+1;         nValue[2]                := nValue[2]+1;         nValue[3]                := nValue[3]+1;                  bWriteRegs                 := TRUE;                  fbWriteRegs.sIPAddr     := ipAddr;         fbWriteRegs.nTCPPort     := 502;         fbWriteRegs.nUnitID        := 16#FF;             //Tried setting this to 0,1 and it also and didnt work ...         fbWriteRegs.nQuantity     := 4;         fbWriteRegs.nMBAddr     := 16#3000;         //Tried: 16#3000, 0, 1         fbWriteRegs.cbLength     := SIZEOF(nValue);         fbWriteRegs.pSrcAddr     := ADR(nValue);         fbWriteRegs.tTimeout     := T#5S;         fbWriteRegs                (bExecute:=TRUE);     ELSE                  IF NOT fbWriteRegs.bBUSY THEN             bWriteRegs             :=FALSE;             fbWriteRegs            (bExecute:=FALSE);         END_IF                  fbWriteRegs                (bExecute:=FALSE);     END_IF  What should I change in my code in order to make this example work? Thank you in advance for any support!   Info about LabVIEW programs:  I am using the Modbus TCP Master / Slave examples  The IP address is set to localhost and the port to 502 (which should match the IP address in my Beckhoff code)  I am 100% sure it works because I have also tried connecting to this program via Python script. Picture of my LabVIEW programs:
  14. Hello, I am using Easymodbus library to Communicate with Modicon TM218 PLC. Reading and Writing of Holding Registers working fine. But coming to writing of single bit in data register i am facing Problem. Need to know how we find coil address of a data register. e.g I have to write bit 1 to MW70.1 address. How we do that. Right now i am reading complete MW70 Register and Manipulating it using bit manipulation techniques and again Writing using Write single Register Function. It's working but some times because of reading problem it writes some garbage values. At that time complete system effecting.    Please provide me any solution. Thanks in Advance. 
  15. Dear All, At the moment, I have project with PLC Delta and HMI Proface. I design HMI GP2500 by GP-PRO/PBIII ( V7.0). I see in List Device PLC of Software  not support PLC Delta.  Can you tell me how do you connect or Software HMI Proface ( Gp2500) support PLC Delta ? Thanks you very much.
  16. Hello, I'd like to ask for a technical confirmation on using MODBUS TCP in a M340 + Fiber Converter Card (BMXNRP0200C) or Switch (ADAM 6521) + Fiber Optic patch cords and cable topology to communicate with a SCADA system. The main objective is to provide a fiber optic connection point inside a control panel because it is located in a area prone to electrical interference. The protocol to be used would be MODBUS TCP. We have two simple topologies in mind but we are not sure if they are feasible. So i'm asking for a little support about it. Considering the attached simplified topologies (Drawing1.jpg), am I able to use MODBUS TCP to communicate a M340 with a SCADA workstation with no problem? I'm not sure if the protocol allows this kind of change on the physical medium like if it was pure Ethernet.    
  17. 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    
  18. How to enable modbus in mitsubishi plc

    hello there, I have Mitsubishi FX3G 24m PLc which has an ethernet port for communication port. how to enable Modbus TCP/IP for data collection of sensor values and sending it to a 3rd party. If this has been answered pls link to the thread.
  19. 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.
  20. Hello, Has anyone got an Omron PLC NX1P2-1140DT1 running with Modbus TCP/IP? I tried to reach Schneider several times, but there is "live" or email to discuss or get help, has to go to thru someone from Mexico then he will email to France. All of my attempts was lost, I can establish a "CONNECTION" but I can't READ the Coil - I got the error "Gateway Path Unavailable" (that means  "Used alongside gateways. Basically, this code means the gateway couldn’t allocate an internal path to process the request. Therefore, the gateway could probably be misconfigured or overloaded") My program is based on the MTCP_Client_NJ_E (Revision 2.3 date 23/07/2021 - JP Viskovic from France) I can read the coils using MODBUX Doctor (France) but I can't make work with Etherway. Any advice is welcome. Thanks   MTCP_Client_NJ.slr MTCP_Client_NJ_E.pdf
  21. If this has been asked and answered already, please point me in the right direction. I have a production line that uses Gefran Geflex temperature controllers on a Modbus and Machine Net communication system. The main control panel (MCP) is the master on the Modbus and communicates directly with 3 slave Geflex units (Group Leaders?) which then communicate with the others in that group via a Gefran Machine Net type interface (ribbon cable daisy chained from one unit to the next). The issue is twofold: These temperature controllers are slowly becoming harder to find AND they are a PITA to change out because they have to be put in place and then properly addressed using software on a laptop. This means more downtime waiting for someone who knows how to set these up to get there to do it say on a weekend/middle of the night type situation. (I do like my beauty sleep). I'm looking to replace these units with standard SSRs and control them with a PLC (P-2000 most likely). What I would need to be able to do is interface between the MCP and PLC in some way that the MCP still believes it is controlling 24 units (24 Modbus IDs) and have the PLC receive the reads and writes from the MCP and know which ID it was meant for in order to set the SV and respond with the PV and/or alarm codes as that ID. I hope that all makes sense. Basically I need a way for a PLC to act as if it were 24 separate Modbus slave units. Could I just use a separate HMI next to the MCP? Yes, but there are temperature dependent routines in the main operation of the line (extruder run inhibit, etc.) that requires the information reported back on the Modbus. I've looked into Modbus Gateways but the MGs I've found so far don't seem to be capable of assuming the role of 24 different slaves and interfacing with the PLC in a way that would allow the individual control.  Any ideas would be greatly appreciated.
  22. Hi every one. I have strange problem with Modbus communication in Citect 2018. I am communicating to the site switches through Modbus TCP protocol using MODNET driver and reading its sates. I am reading data from Input registers (registers addresses starts from 3x). In default, MODNET driver initializes communication trying conecting to holding register 40001 so I changed initialization in citect.ini to address 30001 because driver didn't want to establish connection because switches don't support holding registers. Now, connection to switches is working but only when page is open where I showing data from them. When I change the page, Citect loses communication and inform this showing alarm on HW alarm page. When I again open page where I show read data, communication back again. Where could be a problem? I will mention that I have more different Modbus TCP devices in project configured and with them don't have such problem. The only difference is that I am reading from holding registers and initialize parameter in citect.ini is not defined for them as for switches.
  23. 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.
  24. Hello All, Please Help Me.. How I can to connect Omron CP1L-M + CP1W-Cif11 with Mitsubishi Inverter D700? Thank you. Omron modbus belum fix.cxp
  25. Hallo, i want to connect PLC Omron CP1E to indicator weighing scale with modbusRTU connection and i have a CP1W-CIF11 module to connect indicator with CP1E. ,but I have no experience in RTU modbus communication in the PLC. How do i start?   *i just need output: 1. Coil (Reference No = 0. Output bits) for input switch with address 3 (Tare). 2.Input Status (Reference No = 1) for output lamp with address 17 (stable) 3.Input register (Reference No = 3) to read data with address 5 (gross weight) 4. holding register (Reference No = 4) to write comparison data with address 17(over) page 85 - 94 in attachment     ad4402_manual.pdf