ABB 57120001-EY DSAO 120模拟输出单元
位D7包含定时器OUT引脚的状态。这允许通过软件查看计时器的OUT引脚。位D6指示写入计时器的计数何时实际加载到计时器寄存器中。加载的确切时间取决于计时器所处的模式,并在“模式定义”部分中定义。在加载计数之前,无法从计时器中读取计数。如果在此时间之前读取了计数,则读取的值将不是刚刚写入的新计数。参见表4-11。位D5至D0包含定时器的编程模式,如同定时器控制字位D5到D0.1。写入控制字寄存器1 LOAD位=1 2。将计数写入计时器2 LOAD位=1 3。加载到计时器LOAD位的新计数=0 1只有控制字中指定的计时器的LOAD位设置为1。其他计时器的LOAD位不受影响。2如果定时器编程为两个字节计数(最低有效然后最高有效),则当写入第二个字节时,LOAD位将变为1。
Bit D7 contains the state of the Timers OUT pin. This allows viewing of the Timer’s OUT pin via software. Bit D6 indicates when the count written to the Timer is actually loaded into the Timer register. The exact time of the loading depends on the mode the Timer is in and is defined in the “Mode Definitions” section. The count cannot be read from the Timer until it has been loaded. If a count is read before this time, the value read will not be the new count just written. Refer to Table 4-11. Bits D5 through D0 contain the Timer’s programmed mode exactly, bit for bit, like the Timer Control Words bits D5 through D0.1. Write to the Control Word Register 1 LOAD bit = 1 2. Write count to Timer 2 LOAD bit = 1 3. New count loaded into Timer LOAD bit = 0 1Only the Timer specified in the Control Word will have its LOAD bit set to 1. LOAD bits of other Timers are not affected. 2 If the Timer is programmed for two byte counts (least significant then most significant), the LOAD bit will go to 1 when the second byte is written.