Big Country Posted June 29, 2006 Report Posted June 29, 2006 I am trying to set up this card and having a bit of trouble. Keep in mind this is the first time that I have even used analog inputs so I am very green at this. If there is any one out there that has done this before any help or suggestion would be greatly appreciated. I have downloaded all the literature that I could find on Mitsu web site and entered the example program and didn't have any luck with that either.
Ken Moore Posted June 29, 2006 Report Posted June 29, 2006 You will get more responses if you post your Mitsubishi questions in the Mitsubishi forum, pehaps one of the modertors can move your post.
waynes Posted June 29, 2006 Report Posted June 29, 2006 Hi Big Country, Do you have more info??? What do you have a difficulty with- software setup/ electrical connection .... As far as my current knowledge goes, you have two types of analog devices: active & passive. Active: Usually a powered device that supplies its own voltage to the current loop. Passive: A device that is powered through the loop and provides you with the appropriate signal (mA). For active devices the connection is usually + to + and - to -. For passive devices, the picture changes and you need to do the following. Supply the devices' (+) terminal with 24VDC; Connect the devices' (-) terminal to you plc's (+) terminal; Connect your PLC's AD Cards' (-) to 24V-. This will create the correct loop. Remember that this card has dip switches on it which you will have to set prior to connection. Hope this helps Regards, WayneS
Big Country Posted June 29, 2006 Author Report Posted June 29, 2006 I did post it in the Mitsu forum but thought I would cover all the bases posting it here also. This is the first time that I have attempted to use analog input, I beleive that I need to use passive but my biggest problem is getting the card set up and talking to the PLC.
Colin Carpenter Posted June 29, 2006 Report Posted June 29, 2006 There's a software example of setting up a A1S68AD in this thread http://forums.mrplc.com/index.php?showtopic=7677 Should be pretty self explanatory.
Paulio Posted June 30, 2006 Report Posted June 30, 2006 First things first, you should set what your input source is. Voltage or Current. Set the dip switches to suit your input. In your PLC code you should set the card up in your IO settings. The code is very simple. First you have to set the active channels. Then set your error handling. Then set your reading and scaling. I have attached some sample code. Where H2 is mentioned, replace this with your card header address in HEX. Eg Slot 0 = H0 Everything else should start to make sense. Analogue_Input_Sample.zip
Big Country Posted June 30, 2006 Author Report Posted June 30, 2006 So the H in the code is where you have your card inserted into the rack. Thats makes a little more sense now. Did you get this code from the cards manual? It looks very similar to what I have been trying to work with out of the manual. Let me try that and I will get back with you and let you know how that turns out. Thanks for your help!!!!
Colin Carpenter Posted June 30, 2006 Report Posted June 30, 2006 In Mitsubishi speak, H stands for Hex, as does "16#" ...... just two different ways of saying the same thing. You need to know how to work out the Hex address of the card that you are interested in, and it all depends on where it is in the rack in relation to the other cards in the PLC. In general, all other cards take up either 16 or 32 (decimal) addresses, but in the programme code, it's always referred to as a Hex address. If the card is a 16 way input or output card, then it takes 16 addresses, 32 way input or output cards take 32 addresses and special cards (analogue in and out, comms, network etc.) almost always take 32 addresses. Example, say you had a PLC configured as shown below, the Hex addresses would be as shown alongside: Starting at the first slot (call it Slot 0) Slot 0 16 Outputs 16 addresses Starts @ H00 Ends @ H0F Slot 1 Special 32 addresses Starts @ H10 Ends @H2F Slot 2 32 inputs 32 addresses Starts @H30 Ends @H4F Slot 3 16 outputs 16 addresses Starts @ H50 Ends @H5F Slot 4 A1S68AD 32 addresses Starts @ H60 Ends @H7F The "start address" is known as the "head address". And so on, and so forth. As you add more racks, you just keep counting in Hex. Mitsubishi A and QnA CPUs can generally handle 256, 512 or 1024 (decimal) addresses 256 (H100) addresses is equivalent to 8 slots of "32 address cards" ( 1 complete rack) 512 (H200) addresses is equivalent to 16 slots of "32 address cards" (2 complete racks) 1024 (H400) addresses is equivalent to 32 slots of "32 address cards" (4 complete racks) Just to add a bit more complication, FX PLCs use Octal notation or inputs and outputs. They may be odd ...... but they're bomb proof.
Big Country Posted July 10, 2006 Author Report Posted July 10, 2006 Thank everyone for their help! I was able to take what you posted and adapt it to what I needed, Once again thanks.
Recommended Posts