Search the Community

Showing results for tags 'twincat. beckhoff. seriall. rs232'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 119 results

  1. I face an issue with Beckhoff CX5020 controller. The controller attached with EL3403. I load the plc code into the controller and use my C# program to read the value. It's work fine but when I restart the CX5020, my C# program can't read any value and complain the symbol not found. I need to re-run the plc code by login -> Run then my C# program can get the value. Every time restart the controller, I need to re-run the PLC code. I have create a boot project and set it run mode but it's still the same. Any one have an idea what setting I have miss out? Please guide me, thanks
  2. GOT2000 <-> Omron CJ PLC

    I have an application where I'm using GOT2000 to read data from the weighing unit using RS232 and I send this value to Omron CJ2M through Ethernet/IP. Some variables from that PLC are connected to the elements of the HMI. The problem is when writing the weight value to the PLC through script or Data Transfer is disabled, the RS232 reading works fine, it's fast, etc. However, when I enable the script which writes data to the PLC, the RS232 slows down by a lot, like it refreshes every 2-3 seconds. If i set the script to execute like every 1-2 seconds, it is working better (still slower compared to when the script is disabled) but I cannot leave it like this, because the weight is used to control some valves, pumps, etc. Enabling script doesn't slow down normal communication with PLC, because I tried to test it by displaying the value of seconds from PLC on the HMI and it refreshes every second. Does anyone have idea why such tiny script causes so many problems with RS232?
  3. Hi All, I connected the controller CS351 to QJ71C24N Module, RS232 setting with non protocol, and got the reading with reception and framing error. Could some one help on the data seem floating in data memory?    QJ71C24N_Reading Data.mp4
  4. 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
  5. Hi, I have a CP1L and CP1E Omron PLC, and I try to make communication between my PLCs and my system (raspberry pi with Linux OS) using Node-red and specifically using the OMRON-FINS node ( https://flows.nodered.org/node/node-red-contrib-omron-fins) and more detail ( https://github.com/ptrks/node-omron-fins ). So I’m looking for a module to create an Ethernet port for my PLCs. ( both PLCs have RS232 port) . Can you please guide me to find a compatible RS232 to Ethernet module for my PLCs?  Thank you
  6. Beckhoff CP7702-1422-0040

    Hi, In our  filling machine:  the designer installed Beckhoff CP7702-1422-0040 This CP contains a digital  I/O modules  inside it at the back side . Do any member have any docunent or manual that explains how to program the Buttons and the lamps in the front side? Waiting your replies. Thank you in advance.  
  7. Hello, I have noticed that a frequent product here is the I-7561U. I'd like to know your reviews. What are you using it for?
  8. Hello! I am working on a quote for a new project that will use EtherCAT but also requires DeviceNet for some legacy components.  Has anyone successfully used the Beckhoff EtherCAT coupler (EK1100) with the DeviceNet Master Terminal (EL6752) and an Omron PLC as the EtherCAT master? My concern is that the coupler will only communicate with the Beckhoff EtherCAT master, but since it is so much more expensive to get the new Omron parts to communicate DeviceNET i am hoping this could be an option.  The equipment is extremely simple and price is a major consideration.   Thank you!!!
  9. Hi, I have a problem with Omron PLC and Beckhoff IO. The IO just disconnects in a few minutes and comes back! I received different errors: Link off error, Illegal slave disconnection, process data reception timeout. When I also check "Display Diagnosis/Statistics information" I see errors on all ports A and B of all nodes.  I have called and talked to both Beckhoff and Omron.  I have two NX1 and one NJ101 to test. And I have three EP2318-0001. I have the same problem with all the PLCs and EP boxes. It does not matter if I have one, two, or three nodes. I have tried different revisions of the EP2xxx from the XML file, different settings for the slave, different task periods, and the error still is persisting.
  10. NEED HELP, TwinCat 3 NCI SlaveAxis

    i am trying to set up dual motors   "master and slave"  on a X axis in TwinCat NCI ,   so far i don some test with "MC_GearIn"   but i keep getting this error       "Error    40    14-05-2016 11:27:39 417 ms | 'TCNC' (500): NC-Ctrl (R0), Cannot configurate axis 4 into group 4 because a slave is coupled or this axis is a slave itself (CoupleState: 1) !!"                when i activate NCI. also i did try using a virtual axis as X and link two slave , but i get the same result :(   anybody knows how to do this ?  
  11. Hello friends, I am an Omron PLC user, but have never used modbus before. I have to connect an Omron CP1L-m to Beckhoff bk7300 via modbus serial gateway. 2-wire RS-485 connection (CP1W-CIF11). I have seen an easy to use Modbus RTU master for CP1L CP1H CJ1 CJ2 CS1 but the examples are not for dual port CP1L-m. If I change the PLC model "CP1HCP1LModbusDualPort" to "CP1L-M", the compiler tells me a lot of warnings about variable types. Is Modbus RTU Master easy to use for CP1L CP1H CJ1 CJ2 CS1 compatible with CP1L-M dual port (port 2)? I have tried to use it but it didn't work, error 02, illegal function code. Somebody could help me? Thank you Enric
  12. Hello, I've been using Mitsubishi and Omron systems separately (in their own environment), and I am fairly new when it comes to connecting these two brands together(plc and hmi). I've been scouring the net for wiring diagrams for the cable connections and also the parameters to be set for a successful communication between those two components. can anyone point me at the right direction as everything I've tried so far has been a failed attempt of making these two communicate. here are the parts and my current settings if this helps: FX3U-64M FX3U-232-BD NB5Q-TW00B or better yet, is there a proper cable that I need to buy for this to work?
  13. 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 ?
  14. ProfiSafe Using TwinSAFE

    Has anyone implemented ProfiSafe over TwinSAFE? Would you recommend it? What obstacles or quirks did you need to resolve? Would you do it again?
  15. 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;    
  16. RS485 with CX7080

    Hello i'm newbie. I have a problem with RS485 on CX7080. Busy always True and data=0. I don't know the reason. Please help me! Thank you!
  17. 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:
  18. How to use EtherCAT device

    I have a device which uses the ET1100, Beckhoff to control. I use software TwinCAT 2 to connect this device and it identified the name's EtherCAT I/O Heizungssteller 9 Kanal. But it appear error, it's ERR_PREOP and cannot change to OP. Error: 'check device state for SAFEOP'. AL Status '0x0012' read and '0x0004' expected. AL Status Code '0x0017' - Invalid sync manager configuration'  Anyone can support me how to fix the error, change to OP for EtherCAT device, or how to control this? I attach the image of this error. Please!    
  19. I have successfully downloaded the HMI program into NB7W-TW00B, but there is no display on the HMI because the communication indicator which is connected by the RS232 cable doesn't light up.  I have verified the wiring and pinout of the RS232 communication cable. What else can be done to troubleshoot this issue?
  20. Hi there, I am fairly new to programming serial communications, especially with Mitsubishi PLCs. Can someone walk me through in ladder logic how to bring in ASCII to the PLC, store the data in the data registers. Then send the data out to another PC once an 'X' input is satisfied? ASCII code would go like the following: C2,0,1,123,2,ABC,3,456,CR
  21. OMRON CQM1H-CPU21 Serial Connection

    Hello Sir / Ma'am,   How to connect Omron CQM1H-CPU21 (Image Attached) to the software for Configuration. I have tried it many times but I think I am missing something from the wiring side. Above mentioned Controller has a built-in Peripheral Port and an RS232 Port, We don't have that particular cable that connects the Controller to the Software via Peripheral Port. Kindly help me to connect the controller using the RS232 Convertor.   I am using ATC-810 RS232 to USB converter. (Image with all Pin Details attached) Software - Syswin or cx-programmer. (Upload failed, please use the below link of wetransfer.com to see images) https://we.tl/t-XmuqtUCYOk  
  22. ModBus RTU error code 263 (CRC)

    Hello Can anyone please help. I'm trying to communicate with an Beckhoff PLC via Versamax (IC200CPUE05). Versamax is configured as Master and Beckhoff as slave (BC9050cpu with KL6041 com module) After some try and error i came to the final error. The status is 263 (in hexa 107). in versamax manual it says "Complete_Frame_Invalid_CRC". also in beckhoff error ID is show problem with CRC.   Can anyone please tell me the reason and what is at fault?
  23. I have an SLC 5/03 that Im trying to get the program from. I have a 1747-uic. Im not getting anything to show up in rslinx and I suspect the channel 0 is configured for ASCII because theres an HMI plugged into it. Also the rj45 connection is broken because someone used a crossover ethernet cable...lol. is my best bet to try and fix/replace the 1747-uic? I have an offline copy of a program from a different machine that uses a 'similar' setup and the CH.0 -System is configured for DF1 full duplex,19200,CRC and CH.0 - user is ASCII 19200 baud. Any Ideas? I was using the 3 wire db9 connector running from the HMI to the PLC. I unplugged it from the HMI and used it with the 1747, Should I use a standard DB9 cable with a null modem adapter?
  24. 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
  25. Twincat PLC - how declare variable

    I'm new in PLC programming.  I have a small project which have 15 temperature sensor.  How I should declare the variable for this 15 sensor.   I try code below temp0 AT %IW10: INT;     temp1 AT %IW12:INT; I also have 15 controller which use to control the temperature.  How I should declare this 15 controller also?