Hello,
For starters, I have about 24 hours of PLC programming experience...but I have skills in other languages, C, C++, etc.
I'm trying to help my father out in connecting a HAAS rotary indexer to a CNC with an Anilam M1400 control. It's a relay connection to activate the indexer and the indexer control has a relay connection back to the Anilam to signal it cycle has completed.
I'm not sure what type/brand/model PLC is used in this control, but I can see the instruction set is very limited compared to some of the documentation that I've been reading online.
The problem that I am having is that I need to activate a relay for 500ms, then release. Here is a snippet of what I have to do this so far (that doesn't work)
LD T10
IF 5
RES HAAS_START
EDF 5
IF 10 ( M_CODE eq 10 )
SET HAAS_START
OUT TON10 .5
EDF 10
M10 is used to activate the indexer in the Anilam control software. Activating the relay works fine.
Now, all this TON10, T10 stuff, I found pieces of in some old PLC code I found in a pile of papers. I'm not even sure if T10 is associated with TON10.
Depending if I used an LD or an LDI, the control will either hang after an M10 instruction or the relay will cycle so quickly that the control will not detect the activation.
I'm hoping someone out there is familiar with this style. I haven't been able to find anything similiar to this online.
Thanks for your help,
-Tim
For starters, I have about 24 hours of PLC programming experience...but I have skills in other languages, C, C++, etc.
I'm trying to help my father out in connecting a HAAS rotary indexer to a CNC with an Anilam M1400 control. It's a relay connection to activate the indexer and the indexer control has a relay connection back to the Anilam to signal it cycle has completed.
I'm not sure what type/brand/model PLC is used in this control, but I can see the instruction set is very limited compared to some of the documentation that I've been reading online.
The problem that I am having is that I need to activate a relay for 500ms, then release. Here is a snippet of what I have to do this so far (that doesn't work)
LD T10
IF 5
RES HAAS_START
EDF 5
IF 10 ( M_CODE eq 10 )
SET HAAS_START
OUT TON10 .5
EDF 10
M10 is used to activate the indexer in the Anilam control software. Activating the relay works fine.
Now, all this TON10, T10 stuff, I found pieces of in some old PLC code I found in a pile of papers. I'm not even sure if T10 is associated with TON10.
Depending if I used an LD or an LDI, the control will either hang after an M10 instruction or the relay will cycle so quickly that the control will not detect the activation.
I'm hoping someone out there is familiar with this style. I haven't been able to find anything similiar to this online.
Thanks for your help,
-Tim