ADwin-Pro II
Hardware, manual Dec. 2018
217
Pro II: Extension and Interface Modules
Pro II-LS-2 Rev. E
ADwin
5.8.18 Pro II-LS-2 Rev. E
The module Pro II-LS-2 Rev. E provides 2 LS-bus interfaces on 9-pin
D-SUB connectors (female).
Fig. 175 – Pro II-LS-2 Rev. E: Pin assignment
The LS bus is a bi-directional serial bus with 5MHz clock rate (Low
Speed). The bus is a in-house-design to access external modules.
The first module available is HSM-24V, which can process 24 Volt
signals on 32 digital channels.
The bus is set up as line connection, i.e. the
ADwin
interface and up
to 15 LS bus modules are connected to each other via two-way links.
The last module of the LS bus must have the bus termination
activated. The maximum bus length is 5m.
The LS bus modules are programmed with
ADbasic
instructions, which are
sent via the LS bus interface of the
ADwin
system. The instructions for the LS
bus module are described in the manual of the LS bus module and in the online
help.
TiCo processor
The variants Pro II-AIn-8/18-xxx-TiCo additionally provide a freely programma-
ble
TiCo
processor with 28 KiByte data memory and 28 KiByte program
memory, which has access to all inputs of the module. Find more information
about use and programming of the
TiCo
processor in the manual
TiCoBasic
.
If you store a
TiCoBasic
program in the
TiCo
bootloader, the program is auto-
matically loaded into the
TiCo
processor and started on power-up. Thus, the
module can run on its own and independently from the CPU module of the
ADwin-Pro II
system.
Programming in ADbasic
On the module, you can only program the LED using the instructions
P2_Check_LED
,
P2_Set_LED
.
LS bus modules are programmed with
ADbasic
instructions. The instructions
are described in
ADbasic
online help and in the HSM-24V manual.
The include file
ADwinPro_All.inc
contains instructions for the following
functions:
LS-BUS
LS- PORT
1
2
RESERVED
RESERVED
SIGNAL LOW
RESERVED
RESERVED
RESERVED
SIGNAL HIGH
RESERVED
SIGNAL GND
1
2
3
4
5
6
7
8
9
Range
Instructions
Initialize a module on the LS-bus.
P2_LS_DIO_Init
Configure digital channels of module HSM-
24V as inputs or outputs.
P2_LS_DigProg
Query state of digital channels on module
HSM-24V (only with 1 modul on LS-bus).
P 2 _ L S _ D i g _ I O
,
P2_LS_Digin_Long
Output value
P 2 _ L S _ D i g o u t _ L o n g
,
P2_LS_Get_Output_Status
Initialize the watchdog of the LS bus.
P 2 _ L S _ W a t c h d o g _ I n i t
,
P2_LS_Watchdog_Reset