ADwin-Pro II
Hardware, manual Dec. 2018
15
Processor modules
Pro-CPU-T11-ENET
ADwin
The external trigger input (
Event
In
) enables the processor module to
Input Event In
recognize an external signal as trigger for an event and trigger a process, that
is processed immediately and completely (see
ADbasic
manual, chapter:
The program sections
).
The event signal has to be present for 50ns to be recognized.
Alternatively, the event input of an other module may be used. All event signals
arrive at the same signal line of the processor module as the input
Event
In
does.
The event input can be configured in
ADbasic
with
CPU_Event_Config
.
Digital Channels DIG I/O
The digital channels
DIG I/O
0
and
DIG I/O
1
use TTL signals and can be
programmed as input or output.
After start-up, the
DIG I/O
channels are configured as inputs for falling edges.
Programming in ADbasic
The inputs and outputs of the CPU module are comfortably programmed with
ADbasic
instructions. The instructions are described in
ADbasic
online help
and in the Pro II Software manual.
The include file
ADwinPro_All.inc
contains the following instructions:
Software changes when switching from T9 / T10
Existing
ADbasic
programs may – if still working with Pro I modules – be fur-
ther used with few, but inevitable changes:
– The processor T11 needs the include file
<ADwinPro_All.inc>
to be
included. In parallel, all other include files for Pro modules should be
deleted from the program.
PROCESSDELAY
– The time unit of the
Processdelay
(cycle time) is 3.3 ns for both high
priority and low priority processes.
All referring values and calculations must be adapted to the new time
unit. The greatest possible Processdelay corresponds to 7.1 s; a greater
cycle time can be achieved using an auxiliary variable.
READ_TIMER
– The time unit of 3.3 ns is also true for the internal counter, i.e. counter
queries with
Read_Timer
must be adapted, too.
Please note: The process timing in connection with I/O instructions has
become more complex (see below). Thus, a time difference determined
with
Read_Timer
will now refer to a part of the total process timing only.
SLEEP
– The instruction
SLEEP
must be replaced by one of the following new
instructions.
•
CPU_SLEEP
causes the processor to wait. The instruction
SLEEP
had the same function with the processors T9 and T10.
•
P1_SLEEP
causes the Pro I bus to wait, e.g. to co-ordinate I/O
instructions.
•
P2_SLEEP
causes the Pro II bus to wait, e.g. to co-ordinate I/O
instructions.
The new instructions have a time unit of 10ns (
SLEEP
: 100ns).
Which instruction is right? Normally
SLEEP
is used to bridge the waiting
time of an I/O instruction, e.g. the settling time of a multiplexer with
Function
Instructions
Configure digital channels
CPU_Dig_IO_Config
Query edge at digital input
CPU_Digin
Set level at digital output
CPU_Digout
Configure event input
CPU_Event_Config