// print out to the terminal the internal configuration of the PLC String plcName = "PLogic:E:36"; String propPosition = "PointerPosition"; String propCellType = "EditCellCellType"; String propCellConfig = "EditCellConfig"; String propCellInput1 = "EditCellInput1"; String propCellInput2 = "EditCellInput2"; String propCellInput3 = "EditCellInput3"; String propCellInput4 = "EditCellInput4"; for (int cellNr=1; cellNr<=16; cellNr++) { mmc.setProperty(plcName, propPosition, cellNr); print("Cell " + cellNr + ":"); print(" type: " + mmc.getProperty(plcName, propCellType)); print(" config: " + mmc.getProperty(plcName, propCellConfig)); print(" inputs: " + mmc.getProperty(plcName, propCellInput1) + ", " + mmc.getProperty(plcName, propCellInput2) + ", " + mmc.getProperty(plcName, propCellInput3) + ", " + mmc.getProperty(plcName, propCellInput4) ); } for (int ioNr=1; ioNr<=16; ioNr++) { mmc.setProperty(plcName, propPosition, ioNr + 32); print("I/O " + ioNr + ":"); print(" type: " + mmc.getProperty(plcName, propCellType)); print(" addr: " + mmc.getProperty(plcName, propCellConfig)); }