MrPLC Member
  • Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Fear_me

  • Rank
  • Birthday 08/14/80

Contact Methods

  • AIM ticknora
  • Website URL http://www.elematic.com
  • ICQ 0

Profile Information

  • Location Wisconsin
  • Country United States
  1. CX-Programmer V5.0

    hmmmm, maybe you could try using the replace with option?? I did that with projects created in syswin and when opened in cx programmer they would have "MINUS" in the symbol names because the "-" symbol is not valid to use in cx programmer. ~Andrew
  2. Encoder with Compobus/S

    ok, lets try a cxt file ~Andrew Quadrature_Input_CJ1M_V2.cxt
  3. CX Programmer 5.0

    I have just installed ver 5.0 and i love it! The function blocks will work great for the applications that we use, for example we have one machine that has 3 axis control, we use prox switches on the back of motors and then scale that to an inch value. Now we can use a function block to accept two inputs (prox switches)and then output a word (pulse value) and then scale it to the correct inch value. And now the program is much eaiser to look at with the function blocks. Plus that counting program just needs to be written once and then just place the function block were ever it is needed. ~Andrew Quadrature_Input_CJ1M_V2.cxt
  4. Encoder with Compobus/S

    Hey i have been lurking around here for a while now..... But here are two more ways do do this counting with an encoder/prox switches. One way is with a function block! ~Andrew Quadrature_Input_CJ1M_V2.zip
  5. Code import on CV-500

    Hmm, this is kind of funny, the first two programs have nop and then program number 14 has code in it??? Speaking from my experience... the only time i have seen a nop code was when there was a power surge and the code was somehow erased from the mem card and the card went bad. Have they had a power outage/surge latley?? ~Andrew
  6. Whats going on ?

    Ok, you found the problem, good job! Now the question is: Why did someone put an end statement there??? ~Andrew
  7. from rs232 to rs485

    Thats is what we use and it works without a problem. ~Andrew
  8. Whats going on ?

    hmm, was there a power outage at all??? I had something similar but i was connecting a c200h to a cqm1h via control link (clk21). They lost power and when power came up the control link card in the cqm1h had to be reporgrammed?? I had the same symtoms. I could connect to the c200h plc via modem and i could look at the program in the cqm1h but they would not share data with each other, so i just reprogrammed the control link card in the cqmih and everything worked. Can you do the same thing with the fiberoptics card?? By reprogramming i had to tell it what dm areas were being shared. ~Andrew
  9. MM to inch conversion

    The device has a very far range! What the limit is I am not sure, but I remember them saying that it has an accuracy of upt to 1/2 mile i think..... But the device is made that in normal operation the device will travel away from a reflector and the values in 304 & 305 will increase starting at 0 which is right infront of the IR device, and decrease moving toward it In some cases(like mine) it is needed to travel towards the reflector, which gives you a value of FFFF FFFF when you are right in front of the device and when you move away it will get lower, move towards it and they get higher In my case I have to use it that way cause my machine is traveling toward the reflector. In my programming I am capturing the current value it sits at and storing that in a dm area, then I am always subtracting that dm value with the current so from that point on the value will increase as I move towrd the reflector! I hope that makes sense, I will let you guys see what I am doing by letting you download a copy of my progress. In return I would like your input on how my programming is. And if you have any more ideas, I will look into that floating point idea too Thanks, ~Andrew Progress .cxt file (Right click and save as)
  10. MM to inch conversion

    Ok, I tried it and it is not correct! I am off by 1,000 inches! By using it your way: 1048575mm will equal 42978 inches By calculator: 1048575mm is 41282.48inches! That is a big difference because i need to try and have an accuracy of +/- .25 inches or better! Plus i need my end result to be like this: 5.00 inches = DM1000: 0500 I thank you all for your help, but is there another way i can try this so i do not loose my accuracy?? Thanks, Andrew
  11. MM to inch conversion

    I will have to try that today when I have a chance! The device I am using can be found here: www.trimble.com It is the ICS5000 IR measuring device, it looks at a reflector and gives a distance reading as you are traveling away from the reflector, but because i needed to revers that and travel to the reflector it it will get higher and when the reflector is right in front of it I will get a max value of FFFFFFFF. I have already made a part of the program that will give me a 0 point, by storing the current distance when you press the 0 button and then it is always subtracting that value to the current value. The device is connected to a c2ooh plc via profibus. Very nice device used for measuring, I was just having problems converting to inches with it. Thanks, for your help, I will try it later today and let you know my results. ~Andrew
  12. MM to inch conversion

    1048575mm is this: 304: 0000000000001111 305: 1111111111111111 I just double checked the conversion and that is correct. Also something else just came to mind, to convert mm to inches you have to divide by 25.4mm not multiply! Damit, and you can only use the multiply function when the word is in a bcd format. so does that mean i have to convert it to bcd first? Why can't things be simple?? ~Andrew
  13. MM to inch conversion

    Hi All! I know the topic sounds like it should be simple, but i am just having one of those days! :*-( I have an IR device that is connected to my plc measuring distance. This is the problem: As the IR device moves it displays it distance in channels 304 and 305. 305 is the low word and 304 is the high word. example: 1048575mm is displayed like this: 304: 0000000000001111 305: 1111111111111111 (view word as decimal to get mm display) Now the problem I am having is how do I convert that to inches? I looked into using the scl and arp instructions but I have not gotten them to work! I was even thinking of doing simple long multiply but they set up like this: dm+1 dm x dm+1 dm but that uses the wrong word, i need that dm to be -1 not plus one, does this make any sense?? the plc i am using is a c200h cpu64 Thanks, Andrew
  14. profibus help

    Thanks everyone for your help! After hours of phone support there is two ways to fix this problem. You can use sleepy wombat's way and use the movd instruction, or in the software that you use to set upt the profibus configuration there should be a setting to change the word format: there are two choices, motorola or intel. one will give the problem i was haveing and the other will arrange the word correctly. ~Andrew
  15. profibus help

    ok, found out the addressing problem, when you move the values to the correct dm areas it has to be in bcd not hex! Next problem all of my data is backwards! my lsb is my msb and my msb is my lsb! example: dm1752 = (binary)011010010000001 = 26881(dec) this is the way it should look: 0000000101101001 = 361(dec) See the difference! bits 0-7 should be first and bits 8-15 should be last. does anybody know how to fix this problem with as little code as possible?? or is there something wrong with profibus?? Thanks, Andrew