AndrejP

MrPLC Member
  • Content count

    32
  • Joined

  • Last visited

Community Reputation

1 Neutral

About AndrejP

  • Rank
    Sparky

Profile Information

  • Country Slovenia

Recent Profile Visitors

1338 profile views
  1. OMRON CJ1W-ETN21 Node Number

    I mean  NODE NUMBER set by rotary switches. I know that the last octet of IP  should be NODE NUMBER. But in my case isn't so.  So the question remains: Is this NODE NUMBER settings saved somewhere in CIO or DM area?
  2. OMRON CJ1W-ETN21 Node Number

    Hello. I'm having CJ1M unit with ETN21 card on remote site. I can't drive to the site and look at the rotary switches to determine what is the units NODE NUMBER. I can connect to the PLC remotely using CX-Programmer. Is it possible to read the setting of NODE NUMBER remotely? Is this NODE NUMBER settings saved somewhere in CIO or DM area? Thanks. BR, Andrej.
  3. CITECT OMFINS3 Serial

    I'm already using OMRON driver. But I'm upgrading system from 6.1 to 2020. The problem is that OMRON driver support AR registers to only AR27.15 I need to read AR402.04 (LOW Battery) I know I could link AR to HR register but I have a lot of PLCs and not all can be REMOTELY accesed. In Citect 6.1 there was an easy "hack" to this limitation. You edited OMRON.dbf file. In Citect 2020 this no longer works.
  4. CITECT OMFINS3 Serial

    Thanks for answer. I did use Host link. The driver is named OMRON. The problem is that OMRON driver allow to read A registers from A0 to A27. I need to read the BATTERY status located on A402.04. I know I can modify / copy A to HR, but I have quite a lot of PLCs to modify. BTW: FINS3 support serial communication. You must enter 0/0/0/S for PLC address. But the problem is in FINS HOSTLINK HEADER NODE (Node = 0) by default and I can't find parameter to change this number. BR.    
  5. CITECT OMFINS3 Serial

    Hello. I'm having problems communicating with omron CJ1m through SERIAL port. I'm using OMFINS3 protocol. Settings: Citect.ini  Source: 0/10/0  10..Last IP Address (used for TCP/IP) BOARD: BOARD1, COMx PORT: PORT1, PORT Nr=1, BOARD1, 9600, 7 ,2, EVEN DEVICE: OMR_SER, Dev Nr= 1, Address: 0/0/0/S, PROT: OMFINS3, PORT: PORT1 If the Unit number = 0, this works. If I set the OMRON Unit number = 1, this stops to work.  I figured out (using Multiway) that the problem is in FINS HOSTLINK HEADER NODE (Node = 0)  [10:22:07,273]  <--:@00FA080000300000000010007010182000100000372*<CR> [!]: No response If I change the FINS HOSTLINK HEADER NODE (Node = 1)  it WORKS. [10:31:32,336]  <--:@01FA08000030000000001000801018200010000037C*<CR> [10:31:32,445]  -->:@01FA00C0000200010000000008010100008830000000003D*<CR> The problem is, that I don't know where can I change the FINS HOSTLINK HEADER NODE in Citect's OMFINS3 driver. The Citect's OMFINS3 driver always use FINS HOSTLINK HEADER NODE (Node = 0) Can you help me? Thanks.
  6. Hello. I'm using OMRON NB Display Did someone already made time adjustment from NB to OMRON PLC? What I'm trying to do is to adjust time  from HMI to PLC. Since now I have done time sync from PLC to HMI using timer and data transfer. Now I would like to adjust current time in PLC using NB HMI. I know how to do it, but I'm some kind a lazy person. In our country there is a saying: " Don't reinvent things that already exists" Thanks.   BR, Andrej.
  7. CP1L Unknown IP

    Not good. This is just IP Scaner. As I wrote: The IP of PLC is UNKNOWN. Not in the same subnet...  
  8. CP1L Unknown IP

    Hello. I have CP1L EM30 with unknown IP. I have tried to use "Direct Ethernet Connection" with "Network Browser" but with no success. I have manually set the ethernet IP4 address to 192.168.20.20 / 255.255.255.0 I've got error: "The OMRON Ethernet Direct Connection Manager service is starting in Safe Mode because Windows APIPA is enabled. (0x82020003)Omron.Cxmw.Modules.SystemLibrary.SysLibException" The PLC does NOT have default ip 192.168.250.1. What Can I do? Please help. Thanks. BR, Andrej.  
  9. Hello. Is it possible to hard reset (power cycle) the CP1L-E cpu unit using software? I'm having difficulties, because when you configure IO MAD42 card via CIO registers, you have to power cycle the PLC. The problem is, that I remotely configure the PLC. If I put PLC to program then to run mode, the configuration fails to update. Is there some kind of BIT to do "virtual" power cycle? Thanks.
  10. Structure Text REAL constant

    I guess it has something to do with Regional Format (SL). I have to use comma (1000,0) instead of dot (1000.0).... In other software which uses structure text, I didn't have this kind of problem... BR.  
  11. Structure Text REAL constant

    Hello. I'm having difficulties of how to write REAL constant in ST. For example (Gap1 is defined as REAL): Gap1:= UDINT_TO_REAL(P_Cycle_Time_Value) / +1000.0;     RETURNS ERROR ERROR:   Conversion cannot convert from Integer Literal to REAL I have also tried 1000.0 If I use:  Gap1:= UDINT_TO_REAL(P_Cycle_Time_Value) / INT_TO_REAL(1000);  COMPILES OK My question.. How do I write REAL constant in Structure text? I don't want to use  INT_TO_REAL anytime I want to do calculations with constants.. Thanks. BR.
  12. CJ2m Time as millis()

    Thanks for replay.  But I don't want to mess with Cycle Time. The question is: Can I get current time/date (UDINT) in miliseconds? (Similar as arduino millis())? Thanks. BR.
  13. CJ2m Time as millis()

    Hello. I'm trying to develop Tau filter wich uses time calculations like this: TimeNew := GetTime() // system time in miliseconds ExpTime := TimeNew - TimeOld TimeOld := TimeNew I guess I colud use CycleTime, but the resoult for CycleTime is not constant... 
  14. CJ2m Time as millis()

    Hello. I'm using CX-Programer and CJ2M CPU. Is it possible to get current time in ms like in arduinos millis()? Thanks. BR.
  15. Hello. I can't find any related bits wich would indicate PLC offline / online status. I'm using two PLC's. PLC0 Modbus TCP (Ethernet) PLC1 Modbus RTU (Serial) Please help me to get online status. BR, Andrej.