thoresonr Posted June 16, 2015 Report Posted June 16, 2015 Hello, im new to this forum. I've been messing around with OMRON plcs for 5 or 6 years, but never fully made a program from scratch. I'm using a CP1H-XA-40 (relay input/output). I cant quite seem to figure out what the actual input addresses are. I figured out that the outputs are Q100.00 and so on, but that's all ive gotten so far. I am trying to use a NB5W HMI screen to communicate when to program is finished but I never used NB designer at all, and frankly I dont know what im doing there either. I've been tasked to use the plc mentioned above to operate a hydraulic test stand. I have all the wiring completed. As far as the analog to digital, I have two inputs both 0-10vdc. I dont know what bit to use for these. Same for the outputs. Any help is greatly appreciated! Thor Quote
Mendon Systems Posted June 16, 2015 Report Posted June 16, 2015 The CP1H-XA40 analog inputs are CIO addresses 200-203. The outputs are 210 & 211. The analog I/O description is in section 5-5 of the W450 manual Quote
thoresonr Posted July 9, 2015 Author Report Posted July 9, 2015 Thanks, that helped. What type of function do i use to interpret the analog signal? it is 0-10vdc Quote
Michael Walsh Posted July 9, 2015 Report Posted July 9, 2015 You could scale it using this function block: http://forums.mrplc.com/index.php?app=downloads&showfile=996 The input resolution for the built in analog input on the CP1H is 1/6000 or 1/12000. Quote
thoresonr Posted July 9, 2015 Author Report Posted July 9, 2015 How do I make that function block? I've never made a FB before. Or is there one premade in CX-Programmer? I have the CX-lite version for this CP1H Quote
thoresonr Posted July 9, 2015 Author Report Posted July 9, 2015 which one do I hook up the outputs to on the FB? I made it just like your example, but should it go to a MOV for the output? If so, is it the INT or WORD one? Quote
Michael Walsh Posted July 10, 2015 Report Posted July 10, 2015 It depends upon what format you want the scaled result in. If you want an INT format, use the INT, if you want BCD, use Word. Not likely that you want BCD, so use INT. The other option is real format (or floating point) which can provide decimal values like 2.734 after the scaling. Quote
thoresonr Posted July 14, 2015 Author Report Posted July 14, 2015 that FB really helped, thanks! New question. I finally got my servo valve to work (long story short, motor was wired backwards and no pressure). My Input to my FB and servo card reads 0-10 volts, but the servo card output needs a + and - to drive in different directions. So far I can drive it down, but have to shut it down and reverse signal wires to drive back up again. Is there a function block or parameter i can change that will give me a negative voltage output? Thor Quote
Mendon Systems Posted July 14, 2015 Report Posted July 14, 2015 The CP1H analog outputs do have a +/-10v setting. You should be able to use that, but I don't know if the function block will support a negative output value. That setting will change the range from 0-6000 to +/-3000 (or 0-12000 to +/-6000). Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.