todster said:
Before I can go much much further I need to convert 24vdc to 5vdc from plc to W/C and risk burning up either. Any suggestions? I have SSR's but they are Triacs. I guess I could use the 120VAC modules ( got lots of them). It just seems a little retarded that way.
Given the fairly low speeds involved, I'd use open-collector drive, either in a chip (like a ULN2003) or more likely using discrete components like BC337.
BC337 is perhaps overkill - Ic(max) is 800mA, but they're a robust and inexpensive transistor.
If you used a 4K7 base resistor you'll have more than enough drive even from the webcontrol board.
Ground the emitter and pull the collector to a +24V via 2K2 should pull the PLC inputs high. The collector resistors are going to pass about 11mA each and dissipate just over 1/4 watt, so use half watt resistors.
Going the other way, you could use the same thing, but I'd use a higher base resistor. Perhaps 10K. Use 1K collector pull-up resistors to +5 v for the webcontrol inputs.
Only downside with this is that your levels will be inverted - that is, you turn a WC output ON (high) will turn the transistor on, and ground the input to the PLC. You could perhaps mitigate this with input and output inversion on the WC board.
A somewhat more ugly solution for the PLC->WebControl would be to use a 4V7 zener across the webcontrol board input, and a 4K7 series resistor to the PLC output. This resistor will pass 5mA, and dissipate about 100mW. When the PLC output is low or open, the WC board will see a '0', when the PLC output is 24V the zener will clamp it to nominally 4.7V. The advantage of this is the non-inverting nature.
Or of course, optocouplers. They're available in 1, 2, 4 and 8 devices per package, and provide you with galvanic isolation. Watch the LED current requirements though, as the webcontrol board may not be able to drive 8 of them at once.
My WebTerminal board has space to install pullup or pulldown resistors which could easily be used for the zener diodes, but you'd have to mount the series resistors external to the board. (Perhaps I should add that option for version 3?!)
Edit: Diagram - replicate as many times as needed (for each channel)