Function Library: PCI-8154 + DB-8151
71
_8154_db51_HSL_D_set_int_renewal_bit
:
This function is used to set the Di data bits of specified modules
that user want to monitor the states.
_8154_db51_HSL_D_set_int_control
:
This function is used to enable or disabel the DI interrupt.
_8154_db51_HSL_D_wait_di_interrupt
:
When user enabled the Interrupt function by
_8154_db51_HSL_D_set_int_control
() and set the renewal
type and data bits on specified slave DI modules by
_8154_db51_HSL_D_set_int_renewal_bit
(),
_8154_db51_
HSL_D_set_int_renewal_type
(). This function can be used to
wait on a specific interrupt. When this function is running, the pro-
cess would never stop until a even is triggered or the function is
time out. The following code is an example.
I16 ret;
_8154_db51_HSL_D_set_int_renewal_type(1, 1);
// slave id = 1, monitor the states of bit 0 and
bit 1
_8154_db51_HSL_D_set_int_renewal_bit(1, 1,
0x003);
_8154_db51_HSL_D_set_int_control(1, 1); //enable
…
// start wait
ret =_8154_db51_HSL_D_wait_di_interrupt(1,
10000);
if(ret == ERR_No_Error)
{
// DI state trainisted and check which bits
change states…
}else
{ //
time
out
}…
Содержание DB-8151
Страница 4: ......
Страница 24: ...16 Installation ...
Страница 32: ...24 HSL Slave Module P Wet Contact Input N NPN Sinking Output v IN LED Internal Circuits G ...
Страница 36: ...28 HSL Slave Module U U series slave I O module 71 8 mm X 138 mm ...
Страница 39: ...HSL Slave Module 31 3 2 3 HSL TB32 MD Jumper Settings ...
Страница 41: ...HSL Slave Module 33 M module with HSL TB32 M DIN 128 5 mm x 85 5 mm x 108 mm HSL TB32 MD 129 mm x 107 mm ...
Страница 43: ...HSL Slave Module 35 3 3 2 Jumper Setting FD HD setting JP 0 to 3 JFH1 3 6 12 Mbps setting JBPS1 ...
Страница 44: ...36 HSL Slave Module 3 3 3 Dimensions HSL HUB HSL Repeater ...
Страница 92: ...84 Function Library PCI 8154 DB 8151 ...