PLC to VCP communication/VCP buttons (All-In-One)
Moderator: cnckeith
-
- Posts: 21
- Joined: Sat Feb 13, 2021 7:03 pm
- Acorn CNC Controller: No
- Allin1DC CNC Controller: Yes
- Oak CNC controller: No
- CNC Control System Serial Number: a900780
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
PLC to VCP communication/VCP buttons (All-In-One)
I am stumped on how to actually get a custom button in the VCP to trigger an input in the PLC .src program. The centroid tech support intro to VCP video talks about how they are going to explain this in 'the next video'. Well there is no next video.
I have made buttons, installed them in the VCP and they are visually there, made matching folders and .xml files that I think are right? But how to they hook into the PLC? Editing the xml file is a bit confusing. Skin events and LED output numbers are a bit confusing. Is the output number the same as the input in the PLC software?
Looking at an existing button like Aux1key_I IS INP1059. How does the PLC know to reference that 1059 in the XML file?
I made a couple of new buttons using IMP1122 and IMP1123. I don't think those are used elsewhere (?) and a XML file using those numbers. Have a look at the screenshot.
Yes I compiled, rebooted the MPU and restarted CNC12.
Also I am an experienced PLC programmer and this is my first kick at the can at Centroid. I suck still so don't assume I am doing anything right.
I have made buttons, installed them in the VCP and they are visually there, made matching folders and .xml files that I think are right? But how to they hook into the PLC? Editing the xml file is a bit confusing. Skin events and LED output numbers are a bit confusing. Is the output number the same as the input in the PLC software?
Looking at an existing button like Aux1key_I IS INP1059. How does the PLC know to reference that 1059 in the XML file?
I made a couple of new buttons using IMP1122 and IMP1123. I don't think those are used elsewhere (?) and a XML file using those numbers. Have a look at the screenshot.
Yes I compiled, rebooted the MPU and restarted CNC12.
Also I am an experienced PLC programmer and this is my first kick at the can at Centroid. I suck still so don't assume I am doing anything right.
Lagunmatic 310/all in one swap. First kick at the can.
-
- Posts: 21
- Joined: Sat Feb 13, 2021 7:03 pm
- Acorn CNC Controller: No
- Allin1DC CNC Controller: Yes
- Oak CNC controller: No
- CNC Control System Serial Number: a900780
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: PLC to VCP communication/VCP buttons (All-In-One)
*crickets*
Lagunmatic 310/all in one swap. First kick at the can.
-
- Posts: 7313
- 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: PLC to VCP communication/VCP buttons (All-In-One)
post a fresh report.zip for starters so we can see your CNC setup files and customizations etc.
follow examples in the VCP manual. here is the link. alot of VCP button mods do not need PLC programming work. what are you trying to do??
https://www.centroidcnc.com/centroid_di ... manual.pdf
what specific functionality are you working on accomplishing? this would help to see the big picture to get good advice.
follow examples in the VCP manual. here is the link. alot of VCP button mods do not need PLC programming work. what are you trying to do??
https://www.centroidcnc.com/centroid_di ... manual.pdf
what specific functionality are you working on accomplishing? this would help to see the big picture to get good advice.
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
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
Re: PLC to VCP communication/VCP buttons (All-In-One)
Each VCP button has a "skin event number", specified with the <skin_event_num> element in that button's XML file.
In the PLC program, the state of a button is reflected in the corresponding "SV_SKIN_EVENT_nn" system variable.
If the button is being pressed, the system variable is 1/on/true. If the button is not being pressed, the system variable is 0/off/false.
In a typical VCP-enabled PLC program source file, you will find definitions assigning appropriate names to commonly-used skin event system variables. For example:
You can create your own, or redefine one that you don't need. According to the PLC programming manual, there are 255 such bits available.
In the PLC program, the state of a button is reflected in the corresponding "SV_SKIN_EVENT_nn" system variable.
If the button is being pressed, the system variable is 1/on/true. If the button is not being pressed, the system variable is 0/off/false.
In a typical VCP-enabled PLC program source file, you will find definitions assigning appropriate names to commonly-used skin event system variables. For example:
Code: Select all
SkinCycleStart_M IS SV_SKIN_EVENT_50
-
- Posts: 21
- Joined: Sat Feb 13, 2021 7:03 pm
- Acorn CNC Controller: No
- Allin1DC CNC Controller: Yes
- Oak CNC controller: No
- CNC Control System Serial Number: a900780
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: PLC to VCP communication/VCP buttons (All-In-One)
Aha, Skin Event numbers! That is what I am missing. I will do a little more reading but that’s probably the ticket.
@cnckeith I am trying to write my own tool changer software for a swing arm style cnc mill. Or at least get it all working manually and then see how my patience is holding up.
@cnckeith I am trying to write my own tool changer software for a swing arm style cnc mill. Or at least get it all working manually and then see how my patience is holding up.
Lagunmatic 310/all in one swap. First kick at the can.
-
- Posts: 7313
- 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: PLC to VCP communication/VCP buttons (All-In-One)
skin events are introduced in the vcp manual as well.
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
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
-
- Posts: 21
- Joined: Sat Feb 13, 2021 7:03 pm
- Acorn CNC Controller: No
- Allin1DC CNC Controller: Yes
- Oak CNC controller: No
- CNC Control System Serial Number: a900780
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: PLC to VCP communication/VCP buttons (All-In-One)
Yes it's just ...a bit confusing the way the manual is laid out. Especially when starting from zero experience coding outside of PLC land.
They should put up that second video that promised to explain this in better detail.
I'll chip away at this in my spare time and see if I can make some spare time, and post an update.
They should put up that second video that promised to explain this in better detail.
I'll chip away at this in my spare time and see if I can make some spare time, and post an update.
Lagunmatic 310/all in one swap. First kick at the can.
-
- Posts: 7313
- 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: PLC to VCP communication/VCP buttons (All-In-One)
hmm i wrote the manual and did the video. sorry its confusing to you, what specifically are you having issue with?
explain the goal and how you are going about it. goal = a CNC function or feature, so explain what you are trying to do and we'll give you advice on how to approach it. Most users don't need to know anything about VCP skin events, but some that want to customize the PLC may. So lets determine that first, said another way What function do we want, then we will look to see if that is already 'canned' or not then proceed with customization if the function is not already available.
explain the goal and how you are going about it. goal = a CNC function or feature, so explain what you are trying to do and we'll give you advice on how to approach it. Most users don't need to know anything about VCP skin events, but some that want to customize the PLC may. So lets determine that first, said another way What function do we want, then we will look to see if that is already 'canned' or not then proceed with customization if the function is not already available.
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
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
-
- Posts: 21
- Joined: Sat Feb 13, 2021 7:03 pm
- Acorn CNC Controller: No
- Allin1DC CNC Controller: Yes
- Oak CNC controller: No
- CNC Control System Serial Number: a900780
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: PLC to VCP communication/VCP buttons (All-In-One)
I’ll get back to you guys when I get back to this. Days booked to work on this machine this week are turning into emergency calls. I’m pretty sure the first post is it.
A video on making a custom button from zero would be great. But I’ll keep poking at this and update when I have time.
A video on making a custom button from zero would be great. But I’ll keep poking at this and update when I have time.
Lagunmatic 310/all in one swap. First kick at the can.
-
- Posts: 3097
- Joined: Tue Mar 22, 2016 10:03 am
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192 - DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Boston, MA
- Contact:
Re: PLC to VCP communication/VCP buttons (All-In-One)
Cheers,
Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.