Search the Community

Showing results for tags 'modbusrtu'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 6 results

  1. WRITE MULTIPLE REGISTER MODBUS

    Hallo my name is Danu, i have a CP1E wirh CP1W-CIF11 and connect to modbus RTU device, i have done with write single coil, write single register,  read single register and read multiple register. But i try to write multiple register,  the indicator of CP1W-CIF11 is off and if i check d memory its no data. I attached my cx programmer. Can you help me create write multiple register in cx programmer?  Thank you AD4402-modbus edit edit edit edit edit.cxp
  2. Hi all, New to the forum. I've been pretty much able to do the things I wanted with Beckhoff, but now I'm finally running into a problem I can't seem to solve alone. I'm trying to set-up Modbus RTU RS485 communication in Twincat3, using an EL6021. I've implemented a sample program from the Beckhoff website, but can't get it to work. I've got the feeling I need to properly set up the EL6021 but most information on the Beckhoff website is about the KL-series IO. Does anybody have experience with this? The strange thing is that, when I enable the function to read some slave's registers, BUSY is set and remains set. No timeout is triggered. I don't have a slave connected yet but I would at least expect to see something on the output of the terminal, and then a timeout. I've bridged TxD+ and RxD+, and TxD- and RxD- and set 8000:06 of the EL6021 TRUE, half duplex mode enabled). A scope connected to TxD+ and TxD- shows nothing. Code added below. I've added a GVL called 'Variable_Configuration' with the following: VAR_CONFIG     Main.MB.InData AT %IB0 : MB_KL6inData5B;     Main.MB.OutData AT %QB0 : MB_KL6outData5B; END_VAR And then the MAIN: PROGRAM MAIN VAR     bIoSyncMaster AT %I* : BOOL;     MB : ModbusRTUmaster_KL6x5B;     MBLedDriver : ARRAY[1..10] OF WORD;     tmpExecute : BOOL;     bError : BOOL;     bBusy : BOOL;     iErrorId: MODBUS_ERRORS;     iNoDatByteRead: UINT;     count: INT;     freebyte: INT;     TxError: INT;     TxBlocked: BOOL; END_VAR MB(     UnitID:= 41,     Quantity:= 4,     MBAddr:= 16#0020,     cbLength:= SIZEOF(MBLedDriver),     pMemoryAddr:= ADR(MBLedDriver),     Execute:= tmpExecute,     Timeout:= T#5S ,     BUSY=> bBusy,     Error=> bError,     ErrorId=> iErrorId,     cbRead=> iNoDatByteRead);      MB.ReadRegs(); count := MB.MBMaster.com.Buffer.Tx.count; freebyte := MB.MBMaster.com.Buffer.Tx.FreeByte; TxError := MB.MBMaster.com.Buffer.Tx.Error; TxBlocked := MB.MBMaster.com.Buffer.Tx.Blocked; tmpExecute:=FALSE;    
  3. 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
  4. HMI and Weighing Indicator

    hallo, i have problem here. i want to connect HMI OMRON NB7W-TW00B to weighing indicator with Modbus RTU rs485. i use this link https://www.myomron.com/index.php?action=kb&article=1538 for wiring diagram for rs485. and the baudrate, databit, parity check and stop bit is same between HMI and weighing indicator. but the output in HMI is "[2] PLC No Response: 00-01-2" i think the problem is my rs485 connection. can you help me? thank you.
  5. ModbusRTUdemos.zip

    Version

    601 downloads

    There are two Proficy ME projects in the zip file one for VersaMax and one setup for 90-30 CPU364 but is the same for all of the 90-30 processors, but read the Manual GFK-2220 to get the correct port information for your CPU and configuration. They are both working and well documented. They were done quite a while ago but I do not recall what version of PME is needed to open them. It is my recommendation that we all use the latest version. Good luck and have fun with it. R~ <))>(
  6. File Name: ModbusRTUdemos.zip File Submitter: RussB File Submitted: 17 Nov 2014 File Category: PLC Sample Code There are two Proficy ME projects in the zip file one for VersaMax and one setup for 90-30 CPU364 but is the same for all of the 90-30 processors, but read the Manual GFK-2220 to get the correct port information for your CPU and configuration. They are both working and well documented. They were done quite a while ago but I do not recall what version of PME is needed to open them. It is my recommendation that we all use the latest version. Good luck and have fun with it. R~ <))>( Click here to download this file