angeraer

MrPLC Member
  • Content count

    70
  • Joined

  • Last visited

Everything posted by angeraer

  1. Hello, I'm looking for a way to turn of a certain light if it was on for a certain period. My wife and son often forget to turn of certain lights. ex; Bathroom, dressing room. I tried something with timers, but didn't succeed in programming this. I'm using push buttons with the piece of code as attached. Does anyone have an example of how I should implement this? (I still have an old C200H PLC in use, so the function possibilities are limited) Thanks a lot! Andy.
  2. Omron HostLink + Raspberry Pi

    Dear, A while ago I started doing the same thing you want to do, but using an Arduino. Search my previous posts : Hostlink via Terminal for more information. Attached you'll find my code to send/revieve commands via the Arduino (and a TTL to RS232 convertor). The Arduino acts as an UDP server which is called from a PHP script running on a webserver (eq. Raspberry PI). The code for the webserver is also included. It isn't finished yet, but might help you get along. Regards, Andy. Arduino_hostlink.zip webcode.zip
  3. Resistor needed to connect input on PLC? (NPN/Sinking)

      Great, thanks for the quick reply!   ps: Bits&Bytes: the scematic is from the tachometer documentation.
  4. Hello, Quick question. I'm connecting a tachometer on my Omron C200H PLC on an ID215 input card. The documentation shows a small wiring schema how to connect the transistor output of the tachometer. They mention a 'load'. Is it common to attach a resistor or is this build in the PLC input cards?   Thanks, Andy.
  5. XW2Z 24 Pins connector standard?

    Hello, I'm looking for some additional Omron cables (XW2Z + terminal block). I was wondering if the 24-pin connector used on an ID215 or OD215 module is something 'Omron' specific or an open standard? I would like to create them myself because they are quite expensive. Thanks, Andy.
  6. Hostlink via terminal

    By sniffing the serial data being sent by CX Programmer, I noticed an undocumented command : @00MB.... example : @00MB1A03003C* @00MB160400004C* @00MB0D07000001008035* Anybody who has any info on this command? Regards, Andy.
  7. Hostlink via terminal

    Hello, I'm trying to figure out how hostlink works from previous posts in the forum. Till now I've been able to do some simple tests with my OMRON C200H, connected via a serial cable (9600, 7, Even, 2) to my Windows computer : ex: test the PLC : Command : @00TS123443* Response is the same as the command, so this is ok : @00TS123443* Read 3 words from DM100 Command : @00RD0100000354* Response : @00RD009876000080005E* meaning DM100=9876, DM101=0000, DM102=8000 Write value '1234' in DM101 Commands : 1. Put PC into MONITOR : @00SC0252* 2. Write '1234' into DM101 : @00WD0101123457* 3. Put PC into RUN : @00SC0352* 4. Read one word from DM101 : @00RD0101000157*, this gives @00RD00123452*. Now my question : I would like to read/write the input and output status for example for output bit 110.00 on an OD215 module. Is this possible? I've been looking at the I/O READ/REGISTER commands, but don't understand what they would do? I could always copy the status in the PLC program to some memory area and read/write over there if this isn't possible. Why : I would like to connect an Arduino (with Ethernet module) and Serial module to my PLC. On the Arduino I would like to write a web interface that lets me see the I/O status of my PLC and eventually turn my lights on/off with this web interface. Thanks, a lot! Andy.
  8. Hostlink via terminal

    Thanks for the info you gave me. I tried it and it works : Register the bit I would like to read (110.00) : Command : @00QQMRCIO 0110003A* Response : @00QQMR005F* (Returns OK) Read the status : Command : @00QQIR5B* Response : @00QQIR0016A* (Returns OK + 1 = ON) Afterwards I tried to change the bit status via the Forced Set command : Command : @00SC0252* (Put PLC in monitor mode) Response : @00SC0050* Command : @00KSCIO 0110003D* (Set the bit 110.00) Response : @00KS0058* Command : @00KRCIO 0110003C* (Reset the bit 110.00) Thanks a lot! Andy
  9. Omron 3F88L 132 Circuit schematic

    Hello, I'm using 2x Omron 3F88L-132 in my windmill. After a power failure, both units fail to start. They make a whispering noise. It looks like a problem with the internal power supply. Does anyone have the electronic circuit schematic for this unit? Thanks, Andy.
  10. Hello, As you may already know because i've asked a lot of questions in the Omron forum, We've built a wind turbine controlled by a PLC. Since it is my first and only PLC experience I've already learned a lot. Now that the windturbine has been running for a year already I've started to take a deeper look at safety. I've added all kind of safety measures : if the power grid fails, emergency stop. If the rotor speed is too high, emergency stop. if the windspeed is too high, emergency stop. too many vibrations, emergency stop. one electrical phase down, emergency stop. ... But now I've been thinking about the sensor that measures the rotorspeed. If that one for example fails, then the rotorspeed will increase a lot and it will not get connected to the grid so there is no resistance to keep it in a steady speed. We've tried to mechanically prevent high speed by using the centrifugal force etc but still... How is something like this checked. Adding a second sensor? If the sensor would fail it could get realy dangerous since the rotor is almost 10 meter diameter and normally does 80 rpm. What if the single input on the input module of the PLC would fail etc? Thanks for the ideas, Andy. www.windmolensite.be
  11. Redundancy for security?

    Well to be honest, none of the above is 100% true Thats the behavior of nature.. The only thing that is true is that the speed of the rotor is almost constant, 75 rpm +2/-2 when it's grid connected. The Amperage goes up/down from 0A to 16A depending on the force of the wind, the voltage stays always the same at 230v. As one of you replied, 'an output is verified by an input' sounds like a good aproach for outputs. To verify an input is more difficult but as BobLfoot suggests by using some logic I indeed can see when things are going wrong. And as an alternative I could always place a second sensor to verify the first sensor. Thanks for the replies! Andy.
  12. How do flags work in a program

    Hello, I'm trying to understand how and when flags (P_EQ, P_LT, ...) are set in a program. If you look at the attached code. The CMP instruction is being used. Imagine DM54 has value 1. The first compare instruction returns false so flag P_EQ is false. (P_EQ=255.06) The second compare instruction returns true so flag P_EQ is true. The third compare instruction returns false so flag P_EQ is false. How will this be handled in the PLC? Since it is always the same flag, will output bit LR10.01 be true at the end of the cycle or will it never be true because the last CMP returns false? How would you code this? (I know flags are being reset by the END command.) Thanks, Andy.
  13. How do flags work in a program

    Thanks for the reply, makes it clear now. Any benefit of using individual rungs? Andy.
  14. PLC broken?

    Hello, I've been using a PLC for some time now for my windmill project as some of you may already know. Today I noticed very strange behavior and after debugging a little bit I saw that the PLC's RUN LED, during normal operation, went off/on several times while the power LED on the power supply or the RUN LEDs on the modules didn't go off/on. The error log in the PLC shows a lot of power off errors. Does this mean the PLC is broken? The PLC was connected behind an UPS. Removing the UPS gave me the same result after a while. Several power off's in the error log? Thanks, Andy.
  15. Can an engine interfere sensors?

    Here's the programm I created in the PLC to solve the problem mentioned. (The Turck relais input is 4.05 and the output bit used is HR4.06. Status must be stable for at least 3 seconds) Andy. PLC_prevent_flaps.pdf
  16. Can an engine interfere sensors?

    Hello, For our windmill project I bought a Turck rotational speed monitor (MK21-122-R). Basically it energizes a relay when the speed is high enough. This relay is connected to my Omron PLC which in turn controls the main relay to connect to the grid. The generator in the windmill is a 7.5 Kw asynchrone induction motor. On the shaft of the motor I placed an optical sensor. When the wind blows strong enough and the rpm reaches 1500 the relay energizes, but it flaps a lot of times when it does this! Once it's active it stays active. Then the rpm drops below 1490 rpm and the relay is de-energized and again it flaps a lot. I've tried all kind of things to avoid this: I thought the power coming from the generator was polluting the grid so I put everything behind an UPS, same thing. Only when I try the setup and I don't let the PLC energize the main relays everything works fine. Any ideas? The only thing I can think of is that the sensor near the generator is getting some kind of interference when the generator is being connected to the grid? I could of course program the PLC so that it should wait for x-seconds etcetc.. but I would like to solve this in the correct way Thanks, Andy.
  17. Can an engine interfere sensors?

    Peter, According to my info generator excitation doesn't occur with asynchronous generators so this isn't the problem, unless I'm wrong? Andy.
  18. Can an engine interfere sensors?

    Hello, All my efforts in trying to solve this hasn't helped a lot. I've tried STP cable for the sensor. I tried another Turck module, other sensors, I even tried the same on a windmill from a friend. It gave exactly the same problem. I guess the Turck device sucks. So my only option is to connect the output of the Turck to a PLC and prevent the flaps within the PLC program. The result I would like to achieve is in the drawing attached. Could anyone help me on this one? Is it possible with basic use of timers and self-containing bits? Thanks, Andy.
  19. Module adressing on C200HG on C200HW-BC051 rack

    Thanks a lot, the adressing is as you said!!! Andy.
  20. Hello, I'm having troubles using an OD411 module connected on the third position on a C200HW-BC051 (5-slot rack). I've connected 3 modules except from the PLC and power supply. In the first and second slot there are ID212 and in the third slot there is an OD411 module. I'm trying to enable one of the 8 outputs on this module but I don't succeed. According to the info in the manual the addresses start at 120.00? I've tried this but I can't get the first output to work. The leds aren't lit. The PLC is in RUN state showing no ERR. Am I doing something wrong? Thanks, Andy.
  21. Can an engine interfere sensors?

    There indeed is a drop in speed. The normal rpm is 1490. It starts to generator at 1500. That's my activation point for the relay. The drop point is just above the 1490. As you can see I can't change this because it would then always be connected to the grid I'm going to try shielded cable and remove the sensor further away from the generator via a sensor with optical fiber. Andy.
  22. Hello, The specs of the OD215 module say : Maximum switching capacity : 16mA/4.5V to 100mA/26.4V 800mA/Common 3.2A Max. I have Omron LY2N-D2 24V relais. How can I calculate the maximum relais I can put behind this module? I want to use 80 relais to turn on/off all my home lights. Thanks, Andy.
  23. Maximum number of Relais behind C200H-OD215?

    Thanks for the help! ...and no its just a normal house.. I just installed 4km of cable so that every single light/contact will be connected to my PLC. Andy.
  24. Maximum number of Relais behind C200H-OD215?

    If have a lot of OD215 modules, maybe I said this wrong Each of these modules have 32 points (2 times 16). So for my 80 relais I would have to use 3 modules. I overlooked the 8 points/common and didn't understand where the 800mA/Common came in the picture! If my power supply can take op to 4A I may use a single power supply to provide the commons and 24v of all the modules? And the relais' coils should be put where the "L" are in the attached drawing? At least I'm sure that I won't blow up things. Thanks! Andy.
  25. Maximum number of Relais behind C200H-OD215?

    first off all, some people try to learn things that's why they may ask stupid questions to your opinion. So my question. I think the relais consumes 36,90 mA according to the specs. And the maximum the output module can handle is 100mA to 3,2A for the complete module. So if I put 32 relais behind one module it shouldn't be a problem? (36,9 * 32 = 1,2A) Am I correct? I just want to verify before blowing up things. Thanks, Andy.