MrPLC Member
  • Content count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About angeraer

  • Rank
  • Birthday 09/06/75

Contact Methods

  • Website URL
  • ICQ 0

Profile Information

  • Country Belgium

Recent Profile Visitors

2580 profile views
  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. 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.
  3. 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.
  4. 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.
  5. 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.
  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

    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
  8. 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.
  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. 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.
  11. 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.
  12. How do flags work in a program

    Thanks for the reply, makes it clear now. Any benefit of using individual rungs? Andy.
  13. 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.
  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