oscarsanmon
MrPLC Member-
Content count
18 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout oscarsanmon
-
Rank
Sparky
Contact Methods
-
MSN
oscarsanmon@jazzfre
e.com - Website URL http://
- ICQ 0
Profile Information
- Location Gavà (BARCELONA), Spain.
-
I don't know if the motor uses inverter , I activate the motor that get "iron cable", and after, with the counter and IORF, activate the cutter. The machine never stops because the cutter is on a platform that moves when cut and I don't need stops the motor that gets the iron clable. Now with IORF instruction the machine cuts with precission between +/- 0 and 4 mm. That it's very good precision because the machine works faster. P.D.: please don't tell me Mr ...I'm younger, I'm 26!!!
-
First: thank's <electron> but your comment about @IORF instruction was Ok! My program works well and I'm very happy . And thank's too, to the other people that helps me in this problem. Oscar.
-
...I can't use CPM2A for count to input signals (at 1Khz) with two interrupts in counter mode??? Ok, is a chepear PLC, but I only use 4 inputs and 4 outputs!!! I'm surprised!!!
-
...Can I put the instruction CTBL with input interrupts in counter mode??? I think that CTBL is only for High Speed Counter.
-
Sorry, I have been a lot of work . <electron> I don't understand your last post, I readed your posts and this evening (if I have time) I do one modifications , to try IO Refresh instruction.
-
Is possible that the TMHH function in the main program does that the interrupt counter works wrong??
-
Hello, first I check the input pulse (with an oscilloscope) and the pulse is: 1Khz. Otherwise, I remember that the encoder is connected to PLC at input 0.03, with the pulse output, BUT the encoder 24VCC is conected to another power suply, different that the PLC powe suply. In that situation is possible that the PLC reads more or less pulses??? Thank's in advance!!! Oscar S.M. <electron> I can't save/export a project in CXP to SWP (if you know how, please tell me).
-
It's possible that my program loose precision when counting is because I didn't refresh the Inputs signals? Now I don't try it, but this evening I'll try. Another question: it's possible that the loose of precision is because I didn't set ok the interrupt, or the PLC executes other instrcutions during the counting task. The problem is that the PLC loose precions in interrupt counter, e.g.: if I need read 1879 pulses from encoder to cut 3 meters, once the machine cuts 2,75 meters, other cuts 3,18 meters, ... and I don't know that do!!!
-
I don't know the IORefresh instruction. I can use this in the interrupt subrutine?
-
Hello, I did a program for a cutting machine with 2 encoders. The programm, at first view is simple: first program the iterrupt couter, second I waiting the interrupt and finally when interrupt is raised, the program activate the cutter during 500ms...and begin the process. The problem is that the program never cuts the same distance (and the encoders are good, and sends pulses at 1Khz). The program code is attached. Thank's in advance, INT_COUNTER.zip
-
I sends one command, @00RR00000051???*. I think that if I request 51 words, beginnig in address 0000, the PLC sends me 10 words of input area (0Ch-9Ch), plus 10 words od output area (10Ch-19Ch) and 32 words of work area (200Ch-231Ch). But this isn't the result. And I don't know how I request all the data in CIO area, in only one command. Thank's in advance. Oscar S.M.
-
Hello!!! I have a CPM2A, and a Delphi program that connects with RS232 serial port. I can read/write Input and Output area with RR command. But I can't read/write Work area (IR200-IR231). Anybody knows what I does wrong? Thank's in advance. Oscar S.M.
-
Hello Jay!!! I look your replay, but my doubt is: if I have two inputs for two interrupt counters (2KHz) , if the first interrupt executes the subrutine 0 and this subrutine executes a timer (TMHH) that keep the output 1s (e.g.). In this situation I have four interrupts that be raises in every moment (2 for counter, and two for timers), this is a problem or the PLC can handle the four interrupts and executate it separately? I think that when I catch one interrupt, I need mask(disable) all interrupts and executes all the code that I need, and after unmask(enable) interrupts. Sorry for my bad english , and thanks in advance. Oscar.
-
Thanks for your recomendations, I'm learning a lot with our help and our examples. Only one last question in this topic. Now I'm programming two counters with interrupts (inputs 0.3 and 0.4). If I need, every subrutine execution, keep an output for 0,75 secs. It's a good idea Unmasking interrupts with INT, during the time that instrucction THMM is executing? Or you know a better solution for this problem. Thanks for the patience with me!!! Oscar.
-
Hello Santiago. I tested your code, and I discovered what I did wrong: I never negated the P_First_Cycle signal. You know if CPM2A can read two input signals (0.00 and 0.01) in HSC mode (20KHz)? Thanks in advance. Oscar.