Laser soldering machine

Hi I am developing a program for laser soldering machine with fx3g plc and mrje-10a servo .
There are 8 step in cycle mode.We are using 1ms timer for all the 8 step but when we running the machine on 1 Ms timer then function is not working properly . If we are using 50ms for all step then machine is working properly .

Any body have solution .
 
From your description it sounds like might be trying to make the machine do something it is physically incapable of doing. That's if you mean you are failing to perform the actions required at each step in 1 millisecond, but succeeding when you allow each step to take 50 milliseconds.
 
Yes we tried 1ms 2 ms 3 ms 4 ms ... 50ms and 100 ms also 200 ms also .. but when we use above 50ms then our machine speed get reduces .
 
Then your task is to find out what's different between this machine and the one that can run at 1 mS step times. I'm personally finding it difficult to imagine completing an 8-step soldering process in only 8 milliseconds.
What is the PLC scan time? I presume you need to spend at least one PLC scan in each step.
 
Do you have access to the software on the machine that is working ?.
Are you using interrupts?
Standard I/O refresh is 10ms, normal program scan will be at least 20ms
Are digital inputs/outputs used in the program as well as servo.
 
No the program is password protected .
And also we are not using the interrupts.

Can you guide for using the interrupts .
Yes we are using di do as well as sevo
 
It is impossible to guide you unless we know the whole process for example are you using inputs/outputs to drive anything, what software are you using GXDeveloper or GXWorks2.
As a simple guide there are a number of interrupts for example input interrupts for X0-X5, timed interrupts cannot remember how many.
I suggest you check out this manual there are others that may go into more detail regarding timed ot input interrupts
 
We are using gxworks2, fx3g plc , mr-je10A servo .

Owk let me explain there are only one input to be used x1 cycle start
Output
Y0 pulse for servo
y1 for servo dir.
Y2- comb on
Y3 - comb off
Y4- pusher down/up
Y5-laser on
Y6 - winder on
These are input and output
We are using t259,260,261.....1ms timer
There are 8 step
1.Comb on
2.Laser on
3. Pusher up
4. Servo rev
5. Pusher down
6. Winder on
7 comb off
8 servo fwd
And again start from 1
 
There are five output devices: servo; comb; pusher; laser; winder.

Some devices have compound outputs e.g. servo pulse and dir, comb on and off.

To use each of all five devices at least once in one cycle, assuming two states per device (off/on, down/up, ...), and end up with the system in the same state at the end of a cycle as at the beginning of a cycle, there needs to be at least ten steps. The eight steps shown do not have a "Pusher down" or "Laser off" to return to the (assumed) original state.

Also, what is meant by "These are input and output?" Is there an input, corresponding to each output, to indicate when an output device has completed its output-commanded action (up, down, on, off, ...)?
 
The cycle start is no problem as this will not require any high speed input.
The other outputs Y0 or Y1 will be covered I would think assuming you are usinf the high speed (PWM DVRI etc.) functions
As for the comb, pusher & winder as standard outputs will be a minimum of 10ms plus the main program that drive them
however, there is a refresh function REF that will update inputs or outputs perhaps you could use that but I have doubts about an 8ms cycle for all 8 cycles, it is doubtful that the physical solenoids or what ever they are will respond that quickly.
It does sound like you need to do some real high speed processing The timer interrupts can only be 10ms onwards so even with a 1ms timer that would have to be triggered inside a input interrupt. I suggest you create a 10ms interrupt, write your program in there & use a refresh function I suspect your program is running in normal scan & the only reason it works at 50ms is that the update of the 8 transitions is just within the scan time. I do not believe the original can possibly run the 8 steps in 8 ms.
See page 5.6.1 of this manual
 
this is the theoretical scan time of a 3G
  • For the FX3G series, the basic instruction execution time is around 0.21 µs per instruction (for contact instructions).
To estimate the theoretical scan time, follow these steps:
Count the total number of instructions (including both basic and applied instructions) in your program.
  • Multiply the number of each instruction type by its corresponding execution time.
  • Sum up the results to get an estimate of the total scan time.
Keep in mind that this calculation assumes ideal conditions and doesn’t account for I/O processing, communication overhead, or other factors. Real-world performance may vary.
 
No the program is password protected .
And also we are not using the interrupts.

Can you guide for using the interrupts .
Yes we are using di do as well as sevo
Why is the fast (8x1ms) system's control program protected by a password?

Why are you trying to duplicate what the password-protected system is doing?

Is the fast system's control running on a PLC (fx3g?), or some other type of device?

As others have mentioned, it is extremely unlikely that any common PLC will be able to operate outputs at a 1kHz cadence; even a ⅛kHz cadence might be problematic.

Can you post your version of the code (PDF or screenshots)? For the outputs, did you use step-dependent destructive coils that are true for 1ms, or did you use set/reset, or latching, coils that hold state until they are changed?

PLC programming is primarily about time; when something happens is more important than what happens. A PLC is a time-discrete device i.e. it can only do one thing at a time, so a core assumption of any PLC application is that the PLC program cycle* time, as well as the response times of its inputs and outputs, are significantly faster than the process it is controlling; significantly means the PLC is so much faster than the process that its discrete nature is indistinguishable from an analog control system. If that assumption is not met i.e. if the PLC is not significantly faster than the process, then, assuming it is possible at all, someone who is very clever has to write a an equally clever program to have that PLC control that process. If that very clever someone password-protects their Intellectual Property, then you will have either spend time and money to duplicate their effort, or purchase/license their Intellectual Property.

* whether the continuous cycle or a timed-interrupt cycle
 

Similar Topics

I Cant get the Data from SICK DT500. I Connect TX+ to the Pin 3 and TX- to the Pin 8 of the CM1241. Im using S7-1200 1214C Siemens CPU.
5
Replies
603
Views
Hello everyone, I am planning use PLC to utilise external I/O Optical Fiber laser controller. My PLC type is CP1E-N40SDR-A, a relay one. So, I...
0
Replies
683
Views
Hey all - has anyone used / installed a laser line marker like this for a worker assist: We have need of something like this (but...
3
Replies
654
Views
I have a hl3006d laser from the 90's. I am running a program called lasedit on a Windows PC that communicates with the laser controller. I can't...
0
Replies
578
Views
Anyone familier with the Sick DS-35 laser sensor. I am currently using them for measuring distances to new pallets, this is oneway or disposable...
10
Replies
1,902
Views
Top