
EĆ3
The following is an example of a configuration task for the input module:
1000 !
1001 !
1002 !
1003 ! analog inputs
1004 !
1005 IODEF ANALOG
INPUT 0%[SLOT=4, REGISTER=0]
1006 IODEF ANALOG INPUT 1%[SLOT=4, REGISTER=1]
1010 !
1011 ! common clock enable
1012 !
1015 IODEF CCLK
ENABLE 0@[SLOT=4, REGISTER=5, BIT=6]
1020 !
1021 ! A/D update period
1022 !
1025 IODEF UPDATE
TIME 0%[SLOT=4, REGISTER=7]
1026 IODEF UPDATE
TIME 1%[SLOT=4, REGISTER=8]
1030 !
1031 ! input filters
1032 !
1035 IODEF INPUT
0 FILTER%[SLOT=4, REGISTER=9]
1036 IODEF INPUT 1 FILTER%[SLOT=4, REGISTER=10]
1050 !
1051 ! Place any additional configuration statements here
1052 !
2000 END
The following is an example of a configuration task for an input module defining
interrupts:
1000 !
1001 ! analog inputs
1002 !
1005 IODEF ANALOG
INPUT 0%[SLOT=4, REGISTER=0]
1006 IODEF ANALOG INPUT 1%[SLOT=4, REGISTER=1]
1010 !
1011 ! interrupt status & control registers (used by the operating sys.)
1012 !
1015 IODEF ISCR
CHANNEL 0%[SLOT=4, REGISTER=5]
1016 IODEF ISCR
CHANNEL 1%[SLOT=4, REGISTER=6]
1020 !
1021 ! common clock enable
1022 !
1025 IODEF CCLK
ENABLE 0@[SLOT=4, REGISTER=5, BIT=6]
1030 !
1031 ! A/D update periods
1032 !
1035 IODEF UPDATE
TIME 0%[SLOT=4, REGISTER=7]
1036 IODEF UPDATE TIME 1%[SLOT=4, REGISTER=8]
1040 !
1041 ! input filters
1042 !
1045 IODEF INPUT
0 FILTER%[SLOT=4, REGISTER=9]
1046 IODEF INPUT 1 FILTER%[SLOT=4, REGISTER=10]
1050 !
1051 ! Place any additional configuration statements here
1052 !
2000 END
This sample configuration defines all of the information most commonly used on
the module. Omit from your program any definitions you do not need to use.
Commenti su questo manuale