function GCSScptMain() 
	loCal hDev = 1
	local outVal = 0
	local outChnMax = 16
	local outLoopCnt = 10
	local outDoIdx = 0
	local outDoIdxLast = -1
	
	print("GCS Scpt test do-loop start ...\r\n")
	while outLoopCnt > 0 do
		NMC_SetDOBit(hDev,outDoIdx,0)
		if outDoIdxLast >= 0 then
		NMC_SetDOBit(hDev,outDoIdxLast,1)
		end
		outDoIdxLast = outDoIdx
		outDoIdx = outDoIdx + 1
		if outDoIdx >= outChnMax then
			outDoIdx = 0
			outLoopCnt = outLoopCnt - 1
		end
		NMC_Delay(100)
	end
	print("GCS Scpt test do-loop end ...\r\n")
end