I/O Discrete (Module K6 Ver. 4)68C3 Operations Manual North Atlantic Industries, Inc. 12/19/2014Rev: 2014-12-19-0947 www.naii.com Page 175 of 330REGISTER D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 FUNCTION~656 ~328 ~164 82 40.96 20.48 10.24 5.12 2.56 1.28 0.64 0.32 0.16 0.08 0.04 0.020 Approximate value in mS(LSB~20.48 μS)DE-BOUNCE TIME D D D D D D D D D D D D D D D D D=DATA BITRead I/OIndependent of channel configuration (Input or Output), read logic state High (“1”) or Low (“0”) as defined bychannel threshold values. Each bit of 16-bit binary word corresponds to one of 16 channels.REGISTER D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 FUNCTION16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 ChannelREAD I/O D D D D D D D D D D D D D D D D D=DATA BITInput Programming ExamplesFigure INPUT/OUTPUT FORMAT2 bits per channel Integer PULL-UP/DOWN Configuration1 bit per 4-channel bank Integer CURRENT FOR SOURCE/SINKOne register per 4-channel bank Integer4 Input Ch1-8, voltage sensing(default)0 without current source/sink X NO current source(default)05 Input Ch1-8, contact sensing 0 Ch1-8 with current pull up 3 1 ma 106 Input Ch1-8, contact sensing 0 Ch1-8 with current pull down 12 2 ma 207 Input Ch1-8, OPEN line detect,load is current sink0 Ch1-8 with current pull up 3 0.5 maProgram Max Upper Threshold2561 Input Ch1-8, OPEN line detect,load is current source0 Ch1-8 with current pull down 12 0.5 maProgram Min Lower Threshold35Notes: 1. Figure 6 with 10k ohm resistor nearest load (as in figure 7)2. Vcc > Tmu > IodRod, where load is current sinking3. Tml < Vcc – IodRod, where load is current sourcingVcc ValueRead Vcc voltage at input pin per four channel bank. Value is binary 10 bit word, where LSB=100 mv. Vcc is notneeded when a channel is set for Input (level) sensing. For all other configurations, Vcc must be provided.REGISTER D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 FUNCTION51.2 25.6 12.8 6.4 3.2 1.6 0.8 0.4 0.2 0.1 value in volts (LSB=100mv)VCC VALUE X X X X X X D D D D D D D D D D D=DATA BITPull-Up/Down Current ConfigurationFor contact (switch closure) applications, a current supply (VCC) is required for internal pull-up.Set bit “1”=to configure Bank to Pull-up, or clear bit “0” to configure Bank to Pull-down. Each data bit configuresentire bank of 4 channels. Defaults to “1”; pull-up configuration.REGISTER D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 FUNCTIONCURRENTCONFIGURATION X X X X X X X X X X X X D D D D 1=Pull-Up, 0=Pull-DownD0 configures bank 1, channels 1-4 of that module. D Configure Ch.01-04D1 configures bank 2, channels 5-8 of that module. D Configure Ch.05-08D2 configures bank 3, channels 9-12 of that module. D Configure Ch.09-12D3 configures bank 4, channels 13-16 of that module. D Configure Ch.13-16