MrPLC Member
  • Content count

  • Joined

  • Last visited

Everything posted by kaare_t

  1. Integer to Byte

    Use "AND" (to mask out the upper byte) and "SHR" (shift-bits right to move the upper byte into a new word): Lower Byte: AND [data] 16#00FF -> [outData1] (will only pass the lower byte to the output) Upper Byte: SHR [data] K8 [outData2] (will shift the upper 8 bits 8 positions to the right). Will this work?
  2. Distance in milimeter from Encoder pulses

    It's easy: Just setup an interrupt in your selected PLC (which you haven't specified either) on xx number of pulses, and setup the equation that equals that number of pulses... Reset your counter whenever you want to reset the traveled distance...
  3. IEC 60870-5-103 protocol

    For example: https://shop.raster-products.com/product/gateways/industrial-protocols/modbus-tcp-ip-to-iec-60870-5-103-master-gateway.html
  4. Fx1n control inverter vfd007m21a via fx1n-485-bd

    @huuquyen: You cannot simply use "RS" instruction to trigger Modbus commands. So it doesn't matter if you get the code for writing a Modbus command via RS instruction, you have to build a telegram first. Depending on you budget I would recommend upgrading the PLC to a newer version to get Modbus functionality. Alternatively you can download a function block from Mitsubishi, ready-made including the FX1N (note that you need the BD card): Search for "FXModbusRTUMaster_V200". It's a zip file with a project (GX IEC Developer) but you can use the library file in GX Developer too by selecting to use label in your project. Note that the FX1N is very limited regarding steps, so you might have a too large project...
  5. Hi and welcome! yes, you can connect two (not more) ADP communication modules on the left side of the main unit. For example two FX3U-485ADP-MB.
  6. Check machine status on PLC

    You could use an Arduino and connect a digital output from each of the PLC's to indicate the state. However I would recommend selecting a more industrialized version for production environment, I think that RS sells some that looks more or less like a small PLC... However, I'm not sure I fully understand your question?
  7. Problem of qj71c24N for modbus RTU control

    As @Wasan indicates, check the serial number of the serial module. Picture from the manual.
  8. Hi, If you set BFM2000 = D2000, then the following will happen: 2000h-2001h = D2000-D2001 (2 points) 2002h-2012h = D2002-D2017 (16 points) 2020h-202Ah = D2032-D2041 (10 points)
  9. I'm not sure if I fully understand what you are trying to do, but I can explain a little about the setup: First of all, BFM is not the same as dataregisters (D). You create pointers to/from dataregisters to BFM's, so basically the module itself stores data in BFM, while the CPU interchanges data between BFM and CPU devices. In the AutoRefresh page you have set this correctly (BFM<->D). Note that BFM are HEX address based, while dataregisters are DEC address based, so BFM2010 = D2016... Secondly, Device Assignement is used ONLY when the QJ71MB91 is a slave. These are the areas that an external master device can access and are basically the cross-reference between CPU devices and Modbus addresses. One Modbus channel cannot be slave and master at the same time, but from what I understand you want to read both Holding Registers and Input Registers from an external device into the MB91 module? If so, you can disregard the Device Assignment and look only to the Automatic Communication Parameter. Let us know if anything was misunderstood, or unclear.
  10. GOT 800 Upload Connection Failure

    I understand. Can you share the cable pinout? RS232 and RS422 aren't directly connectable without a converter, that's why I'm asking about the cable. You have RS232 on the computer and need a cable, converter and plug to be able to connect to any RS422 equipment...
  11. BFM for reading devices is 1000-1FFF, writing is 3000-3FFF. Can you post a screenshot of your current non-working setup? it shouldn't be a problem, are you sure your slave device supports FC:04?
  12. FX3U Analog Modules

    If you need 22/22/22 (in/out/temp) you could consider purchasing a remote IO base-node with communication and a communication module for the FX... Just install it wherever you want to and communicate with the remote node
  13. Fx1n control inverter vfd007m21a via fx1n-485-bd

    Which communication types does the Delta inverter support?
  14. Which software are you using?
  15. FX2N-16EYR Error Output

    Can you post a picture/pdf of the code, and how it looks now?
  16. GOT 800 Upload Connection Failure

    Are you sure the cable is OK? The software should be correct according to google... Further, it doesn't seem like the 800 series has a RS232 port, only RS422... Where did you find that it has a RS232 port?
  17. comms Error

    What hardware do you have on the PLC? FX3U have no RS232 ports by default... Converters in between?
  18. FX2N-16EYR Error Output

    CMP is as far as I know 16bit, while DCMP is 32bit... But you can, as @nehpets writes use simpler instructions like <, > or = to just trigger one output point.
  19. FX2N-16EYR Error Output

    Hello and welcome. Your code is very wrong. CMP instructions destination (d) uses three devices "in a row" after the first specified device, so e.g.: CMP D200 D300 M200 This will compare D200 with D300, and put the results in M200, M201 and M202. When s1 and s2 is equal, M201 will activate and cause issues with your next command in your code. You need to make space for the used devices in your code,: CMP D200 D300 M200 CMP D201 D301 M203 CMP D202 D302 M206 and so on
  20. fx5u error lights on and cannot connect to gx work

    Hi, Here are some comments to the code in the picture, referring to network no: EnableComms starts the "sequence control", and if not already active it will activate the sendstatusbit Whenever sendstatusbit goes high, it will give one pulse to the sendpulse bit When sendstatusbit is high, and the sendinstruction is complete, it will reset the sendstatusbit and start sequence again NOTE: I've replaced the timer-bit with the sendpulse bit so that it will give only one pulse for each send, and only when the instruction is available for a new transmission Also mark that you've used the same connection for receiving data. If this is a send/receive connection where you are supposed to receive data before sending new ones then you should implement receive-routine before triggering a new send... If you need to send/receive data independant you should create two different connections in the setup. The setup you have is similar to a sequence where you expect an answer from the remote node before triggering a new send... Something like the following (not in a picture): Send data to remote node rst send signal Wait for receive data from remote node Receive the data from remote node process data from remote node Trigger new send data to remote node So depending on which process we are looking at you need to select your route. Also, you should implement some kind of error-check (timeouts, no connection and so on) You could also download the latest firmware from Mitsu website for your CPU. You will need a SD card for the update process if you choose to do so.
  21. GX works 3 - new version change log

    Great info, thanks!
  22. Servo HA-RH101Y

    Hi and welcome! That was a difficult one... Almost no results on google... But you could try to contact "GTN" in Japan, they were the only ones where I could find a result for this motor. By searching their website, the following came up. But my Japanese is not any good, so google translate indicates that they either have repaired such a motor, or they can get it for you. Not sure what, but you can always give it a try to make contact and see what happens... http://gtntokyo.shop26.makeshop.jp/shop/shopdetail.html?brandcode=000000003986&search=HA-RH101Y&sort=
  23. fx5u error lights on and cannot connect to gx work

    I see that you've used SM409 - 10ms cyclic signal (5ms ON / 5ms OFF) to trigger the socket communication. This is not a good idea. You need to create a small sequence, that interlocks so that you don't try and send data before the previous transmission was sent with or without success. I normally also interlock together with receive if it's a two-way communication (with the Q-CPU): Send data, wait for answer, then send data again after successful reception.
  24. fx5u error lights on and cannot connect to gx work

    I see. What would be really helpful is the PLC Error log. My guess is that the error that is active (when you cannot connect to the PLC using GX Works3) disappears when setting the PLC into stop. But it will (should) be present in the log. Here's what you do: On the top-selection in GX Works3, select "Diagnostics" Select "Module Diagnostics (CPU Diagnostics)" -> Here you can also find the FW version in the upper left corner of the window, please post it. Select "Event History" This will bring up a list of all previous errors (and warnings etc.). You can also create a csv file of the errors (bottom right corner in the history) and post it here. That would be helpful.