Fadal 4020 upgrade
Re: Fadal 4020 upgrade
mate I am trying to change the colours inside the buttons of the X,Y,Z, so it looks like my original screen is this the place to change them cnc-screen...???
"xp" name="glview" type="glview" position="80;80" width="930" height="395"
singlepath="no" bgColor="##b-ncview"
ColorT0="white:1" ColorT1="#00DD00:1" ColorT2="#0000DD:1" ColorT3="#DDDD00:1"
ColorT4="#00DDDD:1" ColorT5="#00DD00:1" ColorT6="#DD5500:1"
HColorT0="transparent:0" HColorT1="#DD0000:3" HColorT2="#0000DD:3" HColorT3="#DDDD00:3"
HColorT4="#DD00DD:3" HColorT5="#00DD00:3" HColorT6="#DD5500:3" ></gitem>
"xp" name="glview" type="glview" position="80;80" width="930" height="395"
singlepath="no" bgColor="##b-ncview"
ColorT0="white:1" ColorT1="#00DD00:1" ColorT2="#0000DD:1" ColorT3="#DDDD00:1"
ColorT4="#00DDDD:1" ColorT5="#00DD00:1" ColorT6="#DD5500:1"
HColorT0="transparent:0" HColorT1="#DD0000:3" HColorT2="#0000DD:3" HColorT3="#DDDD00:3"
HColorT4="#DD00DD:3" HColorT5="#00DD00:3" HColorT6="#DD5500:3" ></gitem>
Re: Fadal 4020 upgrade
i sort of figured it out, are you using the art work to go onto the buttons.?
Re: Fadal 4020 upgrade
Inputs/outputs definition should be added to pins.h header file of Hardware PLC
Code: Select all
#define OUTPUT_SPINDLE 14
#define OUTPUT_CCW_SPINDLE 13
#define OUTPUT_LOW_SPINDLE_SPEED 7
#define OUTPUT_LOCK_SPINDLE_ORIENTATION 4
#define INPUT_SPINDLE_POSITION
#define OUTPUT_TURRET_EXTEND1 6
#define OUTPUT_TURRET_EXTEND2 2
#define OUTPUT_DRAWBAR_LOCK 12
Re: Fadal 4020 upgrade
For the last screen styles, colours defined in XML files and SVG icon colour can be "indexed" colours.
Colour names started with symbols "##" in XML configuration files are replaced inside the software by colours configured in the software "Colors" dialog.
About the same is for SVG colours. Color range from #abcde0 to #abcdef are replaced on the fly in the software when the software starting.
No need to change SVG icons, and XML files, just change indexes in "Colors" dialog to get a new palette.
Like this -
Colour names started with symbols "##" in XML configuration files are replaced inside the software by colours configured in the software "Colors" dialog.
About the same is for SVG colours. Color range from #abcde0 to #abcdef are replaced on the fly in the software when the software starting.
No need to change SVG icons, and XML files, just change indexes in "Colors" dialog to get a new palette.
Like this -
Re: Fadal 4020 upgrade
For 2D Visualisation, we made "Tool highlighting".euroflo wrote: ↑Sat Jan 05, 2019 12:04 ammate I am trying to change the colours inside the buttons of the X,Y,Z, so it looks like my original screen is this the place to change them cnc-screen...???
"xp" name="glview" type="glview" position="80;80" width="930" height="395"
singlepath="no" bgColor="##b-ncview"
ColorT0="white:1" ColorT1="#00DD00:1" ColorT2="#0000DD:1" ColorT3="#DDDD00:1"
ColorT4="#00DDDD:1" ColorT5="#00DD00:1" ColorT6="#DD5500:1"
HColorT0="transparent:0" HColorT1="#DD0000:3" HColorT2="#0000DD:3" HColorT3="#DDDD00:3"
HColorT4="#DD00DD:3" HColorT5="#00DD00:3" HColorT6="#DD5500:3" ></gitem>
It's possible to define a colour for each tool number.
You may have a marking tool and plasma cutting tool on plasma cutting table.
For tangential knife cutters, customers have a knife, creasing wheel, spindle, half-knife, marking pen etc. They like this feature.
Re: Fadal 4020 upgrade
Code: Select all
G90 G53 G0 Z0 (Move to machine Z=0)
euroflo wrote: ↑Fri Dec 28, 2018 5:15 amoutput 7 ON ( low range spindle speed)
output 4 ON ( spindle orientation locking arm into position)
output 14 ON ( spindle CW ) 10 RPM wait until input 4 is active ( spindle position switch) then turn spindle OFF. ( on this machine it has a direction switch CW (14) or CCW (13) and DAC 0-10V )
turn output 6 and 2 ON ( turret extend) wait for input 2 ON then turn OFF 6+2. ( I think we should have a timer here say 3 secs, then if input 2 does not come ON it should do an emergency stop and show a warning that there is a ATC Fault )
output 12 ON ( drawbar locking solenoid ) wait 2 secs
Code: Select all
M601
Code: Select all
G90 G53 G0 Z150
Code: Select all
M610
Code: Select all
G90 G53 G0 Z0
Code: Select all
M602
Code: Select all
G10 L81 P5400 Q5409
A complete M6 macro is
Code: Select all
G90 G53 G0 Z0 (Move to machine Z=0)
M601 (ATC Stage 1)
G90 G53 G0 Z150 (Move to machine Z=150)
M610 (ATC rotate to the next tool)
G90 G53 G0 Z0 (Move to machine Z=0)
M602 (ATC Stage 2)
G10 L81 P5400 Q5409
Re: Fadal 4020 upgrade
M601 PLC code is
M602 PLC code is
M610 code to turn the changer until the next tool will be later.
All of this is just concept for a test.
I hope this description will be useful for other projects.
Code: Select all
#include pins.h
main()
{
portset(OUTPUT_LOW_SPINDLE_SPEED); // 7 - ON
portset(OUTPUT_LOCK_SPINDLE_ORIENTATION); // 4 - ON
portset(OUTPUT_SPINDLE); // 14 - ON SPINDLE
portclr(OUTPUT_CCW_SPINDLE); // 13 - OFF
dac01=rmp10; // What is the DAC value to get 10RPM?
do{
a=portget(INPUT_SPINDLE_POSITION); //4
}while(a!=0); //wait till SPINLDE POSITION INPUT is active
portclr(OUTPUT_SPINDLE); // 14 - OFF SPINDLE
portset(OUTPUT_TURRET_EXTEND1); //6 - ON
portset(OUTPUT_TURRET_EXTEND2); // 2 - ON
timer=0;
do{
a=portget(2); // What's name for input #2 ?
timer++;
if (timer>3000) //ERROR
{
message=PLCCMD_MOTION_BREAK;
timer=2;do{timer--;}while(timer>0);
exit(99);
};
}while(a!=0); //wait till SPINLDE POSITION INPUT is active
portclr(OUTPUT_TURRET_EXTEND1); // 6 - OFF
portclr(OUTPUT_TURRET_EXTEND2); // 2 - OFF
portset(OUTPUT_DRAWBAR_LOCK);// 12 - ON
timer=2000;
do{ timer--;} while(timer>0);
exit(99);
};
M602 PLC code is
Code: Select all
#include pins.h
main()
{
portclr(OUTPUT_DRAWBAR_LOCK);// 12 - OFF
portset(OUTPUT_TURRET_EXTEND1); //6 - ON
portset(OUTPUT_TURRET_EXTEND2); // 2 - ON
timer=0;
do{
a=portget(2); // What's name for input #2 ?
timer++;
if (timer>3000) //ERROR
{
message=PLCCMD_MOTION_BREAK;
timer=2;do{timer--;}while(timer>0);
exit(99);
};
}while(a!=0); //wait till SPINLDE POSITION INPUT is active
portclr(OUTPUT_TURRET_EXTEND1); // 6 - OFF
portclr(OUTPUT_TURRET_EXTEND2); // 2 - OFF
portclr(OUTPUT_LOCK_SPINDLE_ORIENTATION); // 4 - OFF
exit(99);
};
All of this is just concept for a test.
I hope this description will be useful for other projects.
Re: Fadal 4020 upgrade
Hi mate, thanks for that will give it a go and see what happens...
On the M602.(turret retract) we only need the output 2 on, so can we just delete the output 6 line..?
On the M602.(turret retract) we only need the output 2 on, so can we just delete the output 6 line..?
Re: Fadal 4020 upgrade
like this..?
M602 PLC code is
M610 code to turn the changer until the next tool will be later.
All of this is just concept for a test.
I hope this description will be useful for other projects.
[/quote]
M602 PLC code is
Code: Select all
#include pins.h
main()
{
portclr(OUTPUT_DRAWBAR_LOCK);// 12 - OFF
portset(OUTPUT_TURRET_EXTEND2); // 2 - ON
timer=0;
do{
a=portget(1); // Turret home #1 ?
timer++;
if (timer>3000) //ERROR
{
message=PLCCMD_MOTION_BREAK;
timer=2;do{timer--;}while(timer>0);
exit(99);
};
}while(a!=0); //wait till SPINLDE POSITION INPUT is active
portclr(OUTPUT_TURRET_EXTEND1); // 6 - OFF
portclr(OUTPUT_TURRET_EXTEND2); // 2 - OFF
portclr(OUTPUT_LOCK_SPINDLE_ORIENTATION); // 4 - OFF
exit(99);
};
All of this is just concept for a test.
I hope this description will be useful for other projects.
[/quote]
Re: Fadal 4020 upgrade
DAC value..??? dont know. I will have to have a look at his and see if I can come up with a reading