Search the Community

Showing results for tags 'modbus protocol'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 273 results

  1. 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?
  2. 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?
  3. 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.    
  4. 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', '192.168.88.1', '192.168.88.126'  - 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) := '192.168.88.1'; //Tried also 192.168.88.126 and 192.168.88.1 '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:
  5. 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. 
  6. 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.
  7. Hello, I'm trying to read data from a PLC using TCP/FINS protocol. I am able to read the data in the memory area from a supervisor PC (using command 01 01) but I do not know how to read the information specific to this machine. Extract from the machine manufacturer's document: Name Data type Address/Value Usage comment Loc_in1 BOOL 1.00 In Local Input 1 Loc_in2 BOOL 1.01 In Local Input 2 Loc_in3 BOOL 1.02 In Local Input 3 UPS BOOL 3.00 Work UPS Input Int1 BOOL 3.01 Work Interlock 1 Int2 BOOL 3.02 Work Interlock 2 T1_LSB CHANNEL D20 Work UPS Hold time LSB T1_MSB CHANNEL D21 Work UPS Hold time MSB REM_1 BOOL H0.00 Work Remote input 1 REM_2 BOOL H0.01 Work Remote input 2 REM_3 BOOL H0.02 Work Remote input 3   This is the document I've written to understand the protocol: 1st frame to send: 46,49,4E,53 : ‘FINS’ 00,00,00,1A : Length(8 de l’entête + 18 de la chaine qui suit) 00,00,00,02 : Cmd (2) 00,00,00,00 : Error code (0)   Second frame to send 80,00,02,00 : ICF + RSV + GCT + DNA 0F : DA1-FINS node address of Ethernet unit (Server node=15) 00 : DA2-Destination machine address (0=PLC Main unit-CPU) 00 : SNA-Source FINS network address (0) FB : SA1-FINS node address on the PC side (Client node=251) 00 : SA2-Source FINS network address 01 : SID-any data from the source process identifier 01,01 : MRC,SRC-FINS command code 0101: Read memory areas 82 : Memeory area=Variable type: DM (Dxxxxx) 00,14,00 : Read start address (20) 00,01 : count (1) This shoud send the UPS hold time but everything is at  zero. Who could help me ? What is wrong ? Thanks  
  8. Hello, everyone I have to query a SICK distance sensor from an L26CPU via the onboard Ethernet interface. I have created a simple protocol which I start with the function block SP_ECPRTCL. Unfortunately it takes at least 25ms until the next telegram is started. The sensor responds within approx. 1.5ms. Does anyone know whether that works faster or is that a limitation when using the predefined protocols? Sensor manual:  OD5000, 8021391 (sick.com)  (Chapter 7.4) I am grateful for all the hints. Thanks and regards Dave SICK_Protocol.tpc Messaufbau_vTest.gxw
  9. 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.    
  10. 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.
  11. 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
  12. 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.
  13. 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.
  14. 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.
  15. 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
  16. 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
  17. Hi guys, this is my first topic on this forum. I need an help with modbus communication through NX1P2+CIF12 and slaves inverter. I have never used this board, so i need an example to understand. Thanks
  18. Has anyone successfully used a 1783-NATR for Modbus TCP communication between a ProSoft MNET card (in the ControlLogix rack) and a Modicon Quantum? ProSoft MNET:  10.x.y.z Modicon Quantum:  192.168.1.x There is one (1) ProSoft MNET and four (4) Modicon Quantum's. NOTE:  I know there are other devices that support this behavior...the NATR is the suggested standard hardware.  We are getting various responses from distribution and support.  ...I was hoping someone in the community could confirm.   Thanks for your time!  
  19. Hi I'm trying to set up Modbus RTU communication between FX3U PLC and a weigh module. I would use the ADPRW command using 0X03 to read the 16 bit Holding Register but in the weigh module the Data Address/Holding Register of the value I want to get is 400047 - 400048. How to translate the value in 16 bit?   Thanks, Fabio
  20. Hi,   we have a Mitsubishi PLC Fx3U-128MT and a A&D weighing module AD 4212L. The weighing module supports MODBUS RTU communication via RS-485. We are looking for the most affordable and simpler way to establish communication between PLC and weighing module. At pag 20 of the manual " MODBUS Serial Communication Edition " https://dl.mitsubishielectric.com/dl/fa/document/manual/plc_fx/jy997d26201/jy997d26201g.pdf there are three options of communication equipment. According to your experience, what specific interfaces do you suggest us to invest in? Thanks    
  21. Hello,   Any one  have idea how to read and write variable for Schneider tm221 plc with Modbus function codes 3,6,16. I attached file for power supply communicator with registers, I need to adjust power supply from 25% up to 100. Please need help. Best regards,   Chyngyz   Modbus OPERATING INSTRUCTIONS.pdf
  22. Hi all, I'm having an issue with EcoStructure Control Expert where when using DTM browser I try to connect but I get a message "No Ethernet/IP device at specified address...." My issue is that I had a device communicating using modbus but it has stopped and I cannot diagnosis the issue. I can ping the address and run a modbus poll from a PC on the network and everything performs correctly. Any help would be greatly appreciated. 
  23. Need help in table scrolling

    Hi all, We have a DOP 107CV HMI we interface this HMI with microcontroller through RS485 Modbus protocol. I'm new to HMI and PLC's although we are successful in interfacing HMI with Controller(Communication Established successfully) We made a table in HMI and allotted some registers to Modbus address and data is transferred from controller to HMI up to this we are good in communicating Since the table created is static and we cannot scroll down from that table so, to overcome this problem we found History buffer and made PLC trigger and allotted address. In that History Buffer we created 7 rows and the data is sample whenever we triggered the PLC in that case scrolling is working fine, but the problem we are facing is whenever we update 3 rows out of 7 and triggered the PLC only 3 samples are updated in first column and in the next step we updated the other 4 rows and triggered the PLC the data is sampled on next column but we required it to be sample on first column instead of second.  
  24. Delta plc Communication Issue

    Dear allI have DVP14SS211R series Delta PLC Which is having 24V DC supply voltage. I am using PLC as master and My end device as slave. My slave device set device_iD=1I am using Modbus RTU protocol for Function code1baud rate =9600parity =noneStop bit=1data length=8I would like to know how to send request with Function code 1(Read coil Register). i have attached code reference. Communication block it wont give error it shows 0 .means No error
  25. modbus rs232 communication error

    hi I am traying to connect 10 plc's FX3U to a scada system, on the plc's there are a rs232db and FX3U-232ADP-MB cards. i have devices transmit the rs232 by lan or any thing I need (rut955) my problem is when i download the program on plc same times the communication go right , but if i powering pls off then on the communication fail down. I initialized the plc  like photo https://drive.google.com/file/d/1Tr367wfVCRG6vvKcsOFyTKG_FExAsnVy/view can any one help me? sorry for my English