Search the Community

Showing results for tags 'fx3g-485-bd rs485'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 71 results

  1. 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;    
  2. Wireless programming fx3g

    Hello, Can I get a laptop usb bluetooth receiver and a usb-> mini usb adapter and plug the bluetooth receiver into the programming port of a fx3g PLC for wireless melsec software connections? Seems like it would be a nifty little addition to any panel.  https://www.amazon.com/Bluetooth-Adapter-Wireless-Compatible-Computers/dp/B071WKP37Q/ref=asc_df_B071WKP37Q/?tag=hyprod-20&linkCode=df0&hvadid=309751315916&hvpos=&hvnetw=g&hvrand=14775611605752866986&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9058221&hvtargid=pla-761431569272&psc=1&tag=&ref=&adgrpid=67183599252&hvpone=&hvptwo=&hvadid=309751315916&hvpos=&hvnetw=g&hvrand=14775611605752866986&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9058221&hvtargid=pla-761431569272 https://www.amazon.com/Ksmile%C2%AE-Female-Adapter-SamSung-tablets/dp/B01C6032G0/ref=asc_df_B01C6032G0/?tag=hyprod-20&linkCode=df0&hvadid=309833041189&hvpos=&hvnetw=g&hvrand=3896490646336226374&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9058221&hvtargid=pla-567647287320&psc=1
  3. Hello, We have a FX3G connected to a FX3U-ENET-ADP inside a main cabinet. We are then using that master PLC to collect data from 2 other fx3g plcs in a node:node serial network. I was assigned a small project of pricing out some wireless adapters so we can upload/download to the two slave plcs. My question is, is it possible to upload/download programs to/from the slave plcs through the ENET adapter and serial network in the main plc? It would save us some money if possible. thanks.
  4. I have a Siemens HMI 6AV2 124-0MC01-0AX0 in my machine. I want to clone the display on the HMI to PC/Laptop. My question is: 1. What software that I need for this task? 2. What kind of interface that I need between the HMI and PC/Laptop (for example ethernet cable, etc)? 3. Do I need to communicate with PLC connected with HMI or can I just connect with the HMI? Thanks in advance for the answer.
  5. Hello I have a wago PLC and i try to communicate to a device through RS485 using the module 750-652. I tried using the WagoAppCom library and came up with this code But i always get errors regarding FB_init block. I though the instance would be automatically matched. I still can't see how to resolve this as Wago library documentation is very poor and contains 0 examples. Has anyone else solved serial comms problems?  
  6. Good day everyone!   I have some question relate with above subject. While i try make protocol for the CJ2M PLC.  i found out "Primary Expression (yN+x)" function but i cannt understand what`s this for. even i tried to find in the reference manual. i can not.  you can find it "Message Editor" -> "Message Variable" -> "Variable" sorry i tried to upload picture many times but it kept showing failed to upload.    hope so i could find the answer. thank you!
  7. Hmi temperature delta

    I have connected 2 temperature devices with him delta with plc delta by rs485. When I run plc I can see the temperature change on pc but the problem in hmi  it's give errors. Com 2 errors  I need someone help me to connect these devices please 
  8. Reading FX3G PLC

    how to read fx3g plc 16 bit keyword ?
  9. Hello, I need to connect multiple barcode readers (SICK CLP510) to a PLC (FX3GE-40M) for a university project. I need a minimum of 3 bar code readers, but only have one operational, connected via an additional modul for the use of rs-232. The only other port I can use is a miniDin 8, which is a build-in rs-422 port. Because this is a university project, it needs to be as cost efficient as posible. All the readers are CLP510 (pin-out attached bellow) Thanks Becky Pin_out___wire_colour___signal_comparison_CLP100_CLP510_CLV60x.pdf
  10. Hello all I am have FX3G PLC, where i am trying to use SPD function for speed monitoring and controling. currently i am working on software only. I am using x4 as input (s1) , sk1000 (s2), and d4 (D) in monitoring mode when i am forcing X4 to ON/OFF ,  there is no any value change occure on d4 i have tried to change the s2 value from k1000 to k10000, but not fruitful i need your valuable support to confirm that my primary setup is correct or not and what things are required/missing attached program screeshot  
  11. modbus_fb_11.pdfHello to everybody. I'm new I download from Omron France the FB to read form one or more instrument some register by Mod Bus RTU Every things is working well, but some register from the Instrument are on REAL. How i can get a REAL word with the FB on the attachment? Thank you   Modbus_03_Read_Holding_Regs.cxf
  12. FX3G-Create SCADA system from existing PLC

    Dear Expertise I want to create system SCADA with existing PLC FX3G-60MR connected HMI Touchwin OP320 SCADA system expectation can upload data to cloud. But i don't know the device to transfer from PLC FX3G to Cloud Please help   
  13. Omron rs485 communication

    I am using OMRON CJ2M-CPU15 with SCU41-V1 communication module I want to establish communication (rs485 modbus) between omron and Schneider device for reading out electrical parameters. How I can do this? I could not find any manuals and this is becoming very hard for me. I want simply to read few registers from Schneider. Where do I set unit number, starting register, ending register, number of data? I was recently using Siemens and Unitronix and started working with Omron recenlty. Do you have any examples or manuals for this? Thanks in advance
  14. HI all,   I was trying to connect my compass with PLC via SCU32 RS485 (2 wire ) in protocol macros.[ Unit 1 port2]  My send command is   " 01 03 00 01 00 03 54 0B'  &  Expected reply is '01 03 06 XX XX YY YY ZZ ZZ ZZ ZZ" I created a new protocol using CX protocol and created  a send message & a receive message command  and added to sequence 000. (refer pics) Also added PMCR instrcution in cx programmer (refer pic). I can transmit the data , but i cant see any recieve data in D2000. I am not sure what had done wrong, or am i missing something?   Any help is much appreciated!! compass_macro2.psw Compass_TEST.cxp
  15. Please could you assist with the software required to download data tables from 4 off DIRIS A10 Multifunction Meters into TM221CE40R Logic Controller via TMC2SL1 Comms Cartridge using Modbus Protocol over RS485. I have downloaded the Modbus tables from Socomec but not sure how to get these into the PLC. I would really appreciate your help in achieving this. I am using EcoStruxure Machine Expert - Basic to program the PLC & DAQ Factory Developer Release for my Touchscreen. Link to Socomec Modbus tables: https://www.socomec.com/files/live/sites/systemsite/files/SCP/6_gestion_energie/diris/diris_a10/DIRIS-A-10_COMMUNICATION-TABLE_2018-01_DCG01013_MULTI.html#General
  16. hi all,  I am using SCU32 ( unit1, port2, 2wire and termination OFF)  to get the RS485 data strings from the compass with setting 19200bps, 8 databit, 1 stop bit &  No parity. I can send the TX string ( 01 03 00 01 00 03 54 0B)  from D100 memory and  write the Rx data to D2000 (01 03 06 xx xx yy yy zz zz CC CC). But the whenever the there is no RX data, The TXdata bounce back to RX. (refer to video, d100 is TX, D2000 is RX). I also tried wth SCU32 termination resistance ON. Same thing. I am not sure what is missing. Should i use different logical Port for TX and RX ?    EDITED: Just tried another scenarios  1) removed the connector and tried , D2000 - was written the TX values  2) Disable the RX  changing  LD from P_On to P_Off. D2000 - was written to #0000 0000 0000 0000  I am not sure what is  happening., Open connection also TX data bounce back to RX   Appreciate all help Thanks a lot  video1.mp4
  17. Hello, I have been so many days trying to comunicate the multiway software trought a serial usb converter with the SCU31 device, using a omron function block to read a holding register, but I can't achieved it. Now Im receiving some frames on multiway, but there is always some errors. I was wondering if somebody in here that have worked previously with modbus and omron can be able to help me in how to configure everything corectly to be able to read the value from multiway, on the plc, and where is this value saved.  I'll upload some captures to show what I have done till now.    
  18. RS232 converter to RS485

    Hi dears i have one cp340 (340-1AH02) that is modbus RS232 RTU master and one RS485 RTU slave. i want to use RS232 to RS485 converter is it ok? can i do this without any problem?
  19. RS485 to Scale

    Hi guys, I'm trying to communicate with a scale controller (Rice Lake ACT20-AN) to read gross weight. Scale controller: RS485, ASCII bidirectional protocol, Baud 9600, Address 1, Delay 0, Parity None, Stop 1 PLC: Channel 1, Data Bit 7 (unclear if it should be 7/8), Parity None, Stop 1, Sum check code Exist, 9600bps, Non procedural protocol (should this be bidirectional?), Station number 2 (should this be different than scale?) I am using $Movp "$01t75CR" D6050, Movp K1 D6000, Movp K4 D6002, G.Output U8 D6000 D6050 M7000 which seems to work okay since M7001 does not turn on? I do not get any data, however, when running Movp K1 D6100, Movp k7 D6102, G.Input U8 D6100 D6150 M7100 at the same time as the G.Output instruction. I have attached the PLC program. Also, for wiring I wired the RS485+ to SDB and RDB, then RS485- to SDA and RDA as suggested by the scale controller manual. I then grounded the cable shielding along with SG and both FG connections.   Any help would be appreciated in figuring this out, thank you!  Scale_111219.gxw
  20. Hi,  I have a problem with modbus communication. I set everything as shown in the pictures and I get a error 04. What is wrong ? program.bmp ustawienia.bmp
  21. Janitza UMG96RM RS485 Bus

    Dear All.     i'm a new user for Janitza. and i have issue related to RS485 actually, not to Janitza itself. i have one device (UMG 96RM), where there is only RS485 (2 pin only), no RS232, no USB, No Ethernet port. i'm trying simply to connect the device to the PC, via (USB to RS485) convertor, but i'm not able to do it. for me, this is the first time i'm see (RS485 2 Pins), usually there is Ground signal also. anyway, could you please somebody help how to connect? shall i add a pull up & pull down resistors at the device? and what is the power supply i must use? noting that, i tried many things, but still nothing happened.   Appreciate if somebody can help   Best regards.  
  22. Hi I'm trying to figure out how to use the OP320-A to control the relays on the FX1N-20MR. I have mastered the OP edit tool, but I havn't learnt how to use GX Developer. The FX3U and op320 by 485 setting youtube is a good start. Does anyone have a GX Developer project file available. Is there an OP320 and FX1N or similar that comes together, pre-programmed, ready to use. I know how to write C++ programs to send RS485 commands, but this GX developer looks complicated. many thanks Tim
  23. real to integer number

    Hello, Could somebody give for me advice how need seperate real number to integer? for example I have in D10 real number 10,9 for me need to do integer number 10 and 9. The real number seperate to integer I am using this LADDER line, attached picture. In D90 I got 10, But how to isolate the number of decimal places,I can not think of. Please help for me
  24. Hi all, I want to connect FX3G PLC to a network. So I have installed FX3U-ENET-ADP to the left side of the FX3G PLC using FX3G-CNV-ADP. Can someone help me how to change the IP address of the PLC according to my network IP address (let us take it as 192.168.0.50). So now I want to configure the PLC's IP address as 192.168.0.30. I tried using the FX-Configurator-EN but I could not establish a connection with the PLC through it. Here are the snapshots of the process I followed.   But when I do the 'Connection test', I'm getting the following Error message. I tried to connect with both Serial port & USB. But it is showing the same error.   I'm aware that there are lot of discussions happened in this regard, but I could not find the solution part to the problem I'm facing. Kindly guide me please. Best Regards, Vijay  
  25. Hi all,           Good morning. The PLC I'm currently working is Mitsubishi FX3G. I want to send username (in string format) from Weintek HMI to this PLC. But the string format is not supported in FX3G. But I can get the data into PLC in HEX format. For each string, two units of HEX places are used. For eg., T = 54 (Base 16) TO = 544f (Base 16) TOM = 544f4d  (Base 16) TOMY = 544f4d59 (Base 16) In FX3G, the data range of Double Word HEX value is 0 to FFFFFFFF (i.e. upto 8 units). Please refer the image attached. But for my application, I need to have username up to 10 string values. So the HEX data units required are 20 units i.e. 0 to FFFFFFFFFFFFFFFFFFFF. Can anyone suggest how to get it please?