// output the internal stage sync signal on BNC output #3 // stage sync signal goes high when the stage passes the start position and falls when it passes the end position // (set up start and stop positions using SCANR command X and Y parameters, then use SCAN command to initiate) // variables that should not need to be edited by user // would like to define these variables as final, but this is // not amenable to script which can run multiple times String plcName = "PLogic:E:36"; String propPosition = "PointerPosition"; String propCellConfig = "EditCellConfig"; int addrOutputBNC3 = 35; int addrStageSync = 46; // TTL5 on Tiger backplane = stage sync signal // connect to BNC output mmc.setProperty(plcName, propPosition, addrOutputBNC3); mmc.setProperty(plcName, propCellConfig, addrStageSync);