Hello Guest it is April 25, 2024, 12:50:48 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - magnetron

Pages: « 1 2 3 4 »
21
General Mach Discussion / can I send axes pulses to MODBUS TCP device ?
« on: August 25, 2018, 02:33:12 PM »
hello dear forum,

I want send the pulses of the axes every 10 milisecond to MODBUS TCP device
this way I want use my own board to produce pulses for the step motors
instead of paralel port

is this posible ?

thank you

22
neither SystemWaitFor (OEMTRIGGER1)

nor SystemWaitFor (OEMTRIGGER#1) works

I can see OEMTRIGGER1 turns green on in wiev brain

I assigned OEMTRIGGER1 to  parallel port : 2 bit 0 and turned emulation on in port & pins

is there no manual with examples ?

23
sorry my native language is not english

do you want to say that SystemWaitFor is used only with INPUT1 - INPUT4

is there no other signal to be used with SystemWaitFor ?

if yes what is the syntax ?

thank you

24
hello dear forum,

I want use M6start.ms1 to control MODBUS PLC to change tool in the CNC machine

the macro is as following
-------------------------------------------------
tool = GetSelectedTool()

ActivateSignal(OUTPUT3)
Code "G4 P5"
While IsMoving()
Wend

DeactivateSignal(OUTPUT3)  'Engage Turret holding pin     

SetCurrentTool(tool)

SystemWaitFor GetOEMLED(1000)
--------------------------------------------

in the brain control I get an input from MODBUS PLC to OEMLED(1000)

it is activated as you can see in following picture




my question ;

why does not the macro end after seeing the OEMLED (1000 ) is 1 ?

the G-code program doesnot pass beyond the line " M6T04"

I can see the macro running until last line becouse I see OUTPUT3 turn on and off the LED in the MODBUS PLC

please advise

thank you

25
VB and the development of wizards / Re: why my M6Start.m1s doesnot run?
« on: September 28, 2016, 08:29:50 PM »
hello thank you,

when I removed the lines - sub main () end sub main()
the macro has worked

I can see it dwell and change tool number

however the line ActivateSignal(OUTPUT3) doesnot work
cant see it blinking red in diagnostics page

help needed

26
VB and the development of wizards / why my M6Start.m1s doesnot run?
« on: September 28, 2016, 08:37:28 AM »
hello dear forum

no matter what I tried I couldnot get my M6Start.m1s run

is it becouse that my mach 3 is demo mode ? ( i.e. not licensed )

thank you

Code: [Select]
Sub Main()

tool = GetSelectedTool()

ActivateSignal(OUTPUT3)
Code "G4 P3"
While IsMoving ()       
Wend
DeActivateSignal(OUTPUT3)  'Engage Turret holding pin     

SetCurrentTool(tool)

End Sub Main()

27
hello dear Forum,

I try to comunicate my own designed PLC board with MACH3 MODBUS
( here the picture -> http://www.oem-plc.com/index14.htm )

I succeded to communicate - data is coming and going to the PLC board

my question is;
I want the axis not move during toolchange

Is there a FeedHold input to MACH3 that I can use during toolchange ?
which DRO number is NextTool ?
how can I tell the PLC that a toolchange is needed ?
how can I tell MACH3 that tool is changed ?
where in BRAINS are these ?

thank you

28
hello forum ,

I am playing with mach plugin wizard - it compiles without error 

I am trying to send a 5 byte packet with UDP from inside the Update function
however when I start Mach 3 and select the plugin it gives
Art code 9988 ( and then 9991 ) immediately and windows shut it down

what I am doing wrong ? please help - thank you

Code: [Select]
void UDPsend(void){
array<Byte>^bytesToSend = gcnew array<Byte>(5);
bytesToSend[0]=10;
bytesToSend[1]=10;
bytesToSend[2]=10;
bytesToSend[3]=10;
bytesToSend[4]=10;

int i=Global::udpSvr->Send(bytesToSend , bytesToSend->Length, SocketFlags::None);
}

Code: [Select]
void  MyDeviceClass::Update()
{
char buffer[128];
static  int divider;
sprintf_s(buffer,"Mach Coordinates :X(%12f) Y(%12f) Z(%12f) A(%12f)",
GetDRO(800),GetDRO(801),GetDRO(802),GetDRO(803));
console->ConsolePrint(0,1,buffer);
if(divider++%10 == 0)
{
DumpConfig();
}
SendHoldingMovement();
GetInputs();
SetOutputs();
HandleSequences();

UDPsend();

29
hello dear forum,

I am trying to write a G code interpreter with my own motion control hardware

I can calculate trapezoidal speed profile for the individual axis
however my code waits to finish each speed profile
until the axis is in 10 micron near to the target point

this in turn makes the motion of the axis stop and go , stop and go
( if you think each G code program is made up from 100s lines of trajectories )
however I watched mach3 working - mach3 passes from one trajectory to the next very smoothly
it doesnt stop and go like mine

how can I make my own program same like mach3 ?
sorry this is my best english I hope you understood what I mean

thank you

30
hello ,

I want comunicate with my ethernet motion control hardware with Mach3

I am following jarekk's mach_Vmotion example

however when I include winsock control in XYZDemoDialog form
mach3 gives error at startup and then it closes

how can I ethernet comunicate with my hardware with mach3 ?

thank you

Pages: « 1 2 3 4 »