Acorn Inputs/Outputs

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
lvmymp5
Posts: 7
Joined: Wed Jul 15, 2020 1:01 pm
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: ACORN 3499
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Acorn Inputs/Outputs

Post by lvmymp5 »

I'm trying to do simple logic in my plc program. Whatever the state of input 3 reflects the state of output 8. Also the state of input 4 reflects the state of output 7. I have declared variable names in the input section and did the same with the outputs. I followed the steps in video that is posted in the help section When I compile the program I get the following error attached in the png file. Have not been able to generate a report file yet (which will do tomorrow when I'm at the machine). I'm not trying to do any macros or anything like that just straight inputs=outputs. Kind of stumped at the moment even following the tutorial. I have attached my src file also. Tia
Attachments
Z_plc.src
(228.39 KiB) Downloaded 107 times
Error.png
Allin1Chris
Posts: 135
Joined: Wed Jul 31, 2019 12:53 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes

Re: Acorn Inputs/Outputs

Post by Allin1Chris »

Hi,

This message from the Compiler is telling you that the label in your PLC logic is not defined (Not a Mem, Output, Input, Word, ect).

It looks like you replaced "OUTPUT7" with "Cltch_Dec_Out" in the PLC but did not give "OUTPUT7" another definition. The easiest way to fix this is to simply Remove the Line "IF M67 THEN (OUTPUT7)" from the PLC. Another way you can fix this is by giving OUTPUT7 a definition for example making it a Mem bit. "OUTPUT7 is MEM327" as an example would resolve this issue as well.
When requesting support READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043

Please ALWAYS post a FRESH report. To make a report: https://www.youtube.com/watch?v=Ecvg0VJp1oQ.

(We pride ourselves on providing timely solid technical support but, without good information we may not be able to help and/or reply until such information is posted.)

Centroid PLC Tutorial Videos
cncsnw
Posts: 3836
Joined: Wed Mar 24, 2010 5:48 pm

Re: Acorn Inputs/Outputs

Post by cncsnw »

Note that tokens like "OUT1" and "OUT7" are pre-defined in the PLC language, and always refer to the hardware outputs.

Note also that "OUTPUT1" and "OUTPUT7" are not pre-defined, and do not inherently mean anything. They are only defined if you write a definition for them in your PLC program, using the "IS" keyword. For example, "OUTPUT7 IS OUT7" or "OUTPUT7 IS MEM327".

You should give only one name to each input and output. You should make sure you are only running one block of logic to control any given output.

With Acorn systems, you have the added complication of figuring out whether you want to work within the Wizard, or whether you need to bypass the Wizard and add your desired features directly. The Acorn/Wizard way of doing things is helpful as long as what you need is something Centroid already wrote for you, more or less the way you want it. Otherwise, it tends to put a lot of obstacles in your way (or at least, a lot of clutter you have to work around).
cnckeith
Posts: 7306
Joined: Wed Mar 03, 2010 4:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Contact:

Re: Acorn Inputs/Outputs

Post by cnckeith »

The Acorn Wizard has opened up machine tool configuration and customization to 4400 users that would never have been able to program a PLC program even for simple things like adding a limit switch or a light tower. For the current list of stock drag and drop PLC functions available in the Acorn Wizard see this doc... https://www.centroidcnc.com/centroid_di ... ctions.pdf


For the 1 out of 2000 users that want to and are able to, the Centroid PLC program is completely free and open to modify how ever the user sees fit! The Centroid PLC programming system is very powerful which allows the user to heavily customize the CNC control. We also developed and have made available for free our "PLC Detective" program which is instrumental when creating custom PLC programs.

Centroid PLC programming Resources.

Video Series.


forum thread with quick simple plc programming video
viewtopic.php?p=8871#p8871

PLC detective manual
https://www.centroidcnc.com/downloads/c ... kstart.pdf

PLC programming manual
https://www.centroidcnc.com/centroid_di ... manual.pdf
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
Post Reply