Page 1 of 1

PLCADD1616 Error 5161 Unconfigured Mini PLC 1 Found

Posted: Tue Jan 16, 2024 12:45 pm
by Houseman303
I added a Plcadd1616 board to my OAK. There is nothing about configuration in the installation instructions. Where can I find information about this? Thanks.

Re: PLCADD1616 Error 5161 Unconfigured Mini PLC 1 Found

Posted: Tue Jan 16, 2024 1:47 pm
by Centroid_Tech2
If you connected one PLCADD1616, set machine parameter 900 to a value of "1".

Re: PLCADD1616 Error 5161 Unconfigured Mini PLC 1 Found

Posted: Tue Jan 16, 2024 5:24 pm
by lavrgs
Depending on how you are powering the board you may need to change the jumper J1. If you are supplying power via a cable from the Allin1DC or the power supply connected to H6 the jumper will need to be changed/checked. I don't recall the position for each power source...I can edit when I get back to my shop.

Re: PLCADD1616 Error 5161 Unconfigured Mini PLC 1 Found

Posted: Wed Jan 17, 2024 1:25 am
by Houseman303
The expansion card is connected to the external power device and the jumper is set accordingly. There are instructions for that too. The instructions are missing the settings for the parameters. CNC12 operating instructions don't really help either. See image. Reading and understanding is not possible without enough information.
The error message 5161 is also not present in the CNC12 instructions.
:geek:
Screenshot_2024-01-17-06-21-38-39_ab7988c7b00b15bc78ec5a428c58236f.jpg

Re: PLCADD1616 Error 5161 Unconfigured Mini PLC 1 Found

Posted: Fri Jan 19, 2024 10:03 am
by Centroid_Tech2
Error 5161 is issued by the PLC program logic
The message is called from the plcmsg.txt.

"...
161 5161 Unconfigured Mini PLC 1 Found
162 5162 Unconfigured Mini PLC 2 Found
163 5163 Unconfigured Mini PLC 3 Found
164 5164 Unconfigured Mini PLC 4 Found
..."

The 900 series parameters are reserved for PLC use.

The Centroid Standard PLC source files use Parameter 900 to check for an add on board.
Parameter 900 is a bit-wise value so.
(1) plcadd1616 = "1"
(2) plcadd1616 = "3"
(3) plcadd1616 = "7"
etc...

If you install a plc program which requires the PLCADD1616 such as the Centroid_OAK_Mill_ATC, the included parameter file already has this parameter set.

This logic is from the Centroid_OAK_Mill_ATC_Umbrella-r10:

"...
; SV_MACHINE_PARAMETER_900 : PLC ADD Installed
..."

"; Check MiniPLC board communications
IF True_M THEN MiniPLCStatus_W = SV_PC_MINI_PLC_ONLINE,
P900Value_W = SV_MACHINE_PARAMETER_900
IF MiniPLCStatus_W != P900Value_W THEN SET MiniPLCErrorStage"


Centroid recommends that the PLCADD1616 be powered by the power supply that was included with it.