Luka0204

MrPLC Member
  • Content count

    16
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Luka0204

  • Rank
    Sparky

Profile Information

  • Country Croatia
  1. PLC download problem

    Hi, when I download on PLC (R04), sometimes for example. TON timer's output .Q is automatically set to true even though input is false (also on .ET time is 4h ...??). Also, sometimes some bool variables are also set to true even though they are not set by any kind of logic. However, when I physical reset the PLC (power cycle), mentioned problems don't exist. Does it mean that software reset isn't working entirely correct and I need to reset physical PLC (power cycle) every time after I download on PLC? Regards Luka
  2. GX Works 3 - PID control

    Hi, solution lies in special register SD 792 where for loop 1 I needed to activated bit b0 to set 'No limit restriction'. Regards Luka
  3. GX Works 3 - PID control

    Hi, once again question regarding the PID control. When I am using PID Control Instructions (Exact Differential) and I am limiting Manipulated Value (MVLL, MVHL), from 0 to 32000. But, when I run a PLC with these limits, I can't get MV more than 2050. In manual is mentioned that PID limit can be restricted (-50, 2500) or not (-32768, 32767). How to disable PID limit restriction to get limit range (-32768, 32767)? Regards Luka p.s. Thanks to Clear Mind for previous answer  
  4. GX Works 3 - PID control

    Sorry, I forgot to mentioned--- iQ-R (RO4 CPU)
  5. GX Works 3 - PID control

    Hi, I am using PID function (PID operation instruction) from GX Works 3 library but it doesn't work. I set all necessary parameters (sampling time, direction and upper/lower limit values + KP, TI). My input PID_Par is array of 25 points (in manual is written: "*1When auto tuning is not used, the same number of points are occupied as when the step response method is used."). For example, in GX Works 2, PID function works ok. Did someone have similar problem? Does someone have mitsubishi library (GW Works 3) with PID function that works correctly?   Regards Luka  
  6. Modbus TCP/IP iQ-R series

    Thanks for your answers. I already have QJ71MT91 acting as a Master (to another PLC) and I am going to set QJ71MT91 also as a slave (if I am correct, QJ71MT91 can be a master and a slave at the same time). Then I will set built-in eth port on R04CPU to act as a Modbus TCP/IP master and hopefully that will work. Regards
  7. Modbus TCP/IP iQ-R series

    Hi, I have R04CPU (iQ-R series) on one side and on the other side is QJ71MT91 (modbus tcp/ip module). Is it possible to make communication between them (QJ71MT91 is master and R04CPU is slave)? iQ-R series doesn't have Modbus TCP/IP module, but is it possible to set modbus tcp/ip on built-in ethernet port of R04CPU, and how? Best regards Luka
  8. Modbus RTU

    I found a solution. In Predefined protocol support function (see Tools), when you set a communication protocol (for me it's Schneider Modbus), click on the protocol and it will pop-up window 'Protocol Detailed Setting'. There I disabled 'Clear OS area', and it worked. Also, I prohibited Echo back option to receive normal answer to my query. Regards
  9. Modbus RTU

    Hi, I have LJ71C24 modbus module as a master and slave device with the RS-485 Half-Duplex (Modbus RTU). If someone could tell me what is the correct wiring and what are the correct parameters for such communication (Transmission control, do I use echo back parameter..???). Right now, I short-wired SDA-RDA (with A of slave) and SDB-RDB (with B of slave). Also, I am trying with the predefined protocol using Schneider Modbus protocol. Is this ok? Best regards
  10. 16 bits into unsigned word/Bit String [16-bit] array

    Thanks for the reply. I used 'SET_BIT_OF_INT' with 'INT_TO_WORD' for my program and it is a good solution. Once again, thank you!
  11. Hi, I have variable (named var1) with data type 'Word[Unsigned]/Bit String [16-bit]' with Array [0..7]. I want to put 16 variables with data type 'bit' in var1. Is there function for that? Also is it possible to put 16 variables (bit) like this: var1[0].0:=bit1; var1[0].1:=bit2 etc. I'm using GX Works 2 with CPU L02 Best Regards
  12. Hi, I have variable (named var1) with data type 'Word[Unsigned]/Bit String [16-bit]' with Array [0..7]. I want to put 16 variables with data type 'bit' in var1. Is there function for that? Also is it possible to put 16 variables (bit) like this: var1[0].0:=bit1; var1[0].1:=bit2 etc. I'm using GX Works 2 with CPU L02 Best Regards
  13. Function block self-made

    Hi, i want to make a function block which will contain a block GP.CPRTCL (for predefined comm protocol). GP.CPRTCL has an input "Un" who only receives constant (H,K). On input of my own function block i can set a constant variable, but inside block that variable isn't a constant anymore (GP.CPRTCL doesn't recognize a variable). Is there a way for receiving constant variable in GP.CPRTCL block ("Un") if it is in another block. Regards
  14. Serial/Modbus communication

    I used Modbus from Schneider for predefined protocol and it worked. Gambit, thanks for the help.
  15. Serial/Modbus communication

    Greetings, I have L02CPU and LJ71C24 (for serial comm) and they act as a master. For slave I have some energy analyzer device. Device has a Half-duplex RS-485 serial interface (Modbus RTU protocol). Master only needs to read some data from slave. My question is: What protocol should I use for mentioned communication (MC, Predefined, Nonprocedural, Bidirectional)? I saw that if I use Predefined protocol I can select in Predefined Protocol Library, under the Manufacturer, Schneider Electric - MODBUS - 03: RD holding Registers. Is this OK for my type of communication? I will try to do some testing between LJ71C24 and QJ71MB91 (who will act as a slave), this or next week, but it would be helpful if someone can tell me correct protocol for my type of communication? P.s. I am using GX Works 2. Best regards, Luka