Luka0204

MrPLC Member
  • Content count

    11
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Luka0204

  • Rank
    Sparky

Profile Information

  • Country Croatia
  1. 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
  2. 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
  3. 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
  4. 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
  5. 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!
  6. 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
  7. 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
  8. 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
  9. Serial/Modbus communication

    I used Modbus from Schneider for predefined protocol and it worked. Gambit, thanks for the help.
  10. 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
  11. QJ71MB91, communication

    Hello, i will be grateful if someone has simple MODBUS RTU program that can be used as a learning program. I have 2x Q03UDECPU and 2x QJ71MB91, and i want to send some bits/integers (master-slave). I'm using GX Works 2 Best Regards, Luka