Herunterladen Inhalt Inhalt Diese Seite drucken

Pepperl+Fuchs VAM-CTR-PC2 Handbuch Seite 43

Inhaltsverzeichnis

Werbung

PAGE
{ addresses in the DPRAM }
D_COMMAND
D_DATA
D_LPS
D_PCD
D_PP
D_PI
D_EC_FLAGS
D_WDOG_ENA
D_WDOG_CNT
D_IDI
D_ODI
{ command codes (used for the DPRAM's command byte) }
C_SET_MODE
C_SET_PP
C_SET_PCD
C_SET_LPS
{ ============================================================= }
{ GLOBAL VARIABLES
var
error, i
flags
idata
odata
hour, minute, second, sec100
the_second
{ ============================================================= }
{ PROCEDURE:
{ DESCRIPTION:
{
{ PARAMETERS:
{
{ ============================================================= }
procedure DPpage(loc : word);
begin
port[BASE_ADDRESS + PAGE] := (loc shr 8); {shift right, 8 bit}
end;
{ DPpage }
{ ============================================================= }
{ PROCEDURE:
{ DESCRIPTION:
{
{ PARAMETERS:
{
{ ============================================================= }
procedure DPindex(loc : word);
begin
port[BASE_ADDRESS + INDEX] := (loc AND $FF); {mask lower 8 bit}
end;
{ DPindex }
{ ============================================================= }
{ PROCEDURE:
{ DESCRIPTION:
{
Zumutbare Änderungen aufgrund technischer Verbesserungen vorbehalten.
Pepperl+Fuchs GmbH · 68301 Mannheim · Telefon (06 21) 7 76-11 11 · Telefax (06 21) 7 76-10 00 · Internet http://www.pepperl-fuchs.com
: word = $2;
: word = $1F0;
: word = $1F1;
: word = $12C;
: word = $150;
: word = $180;
: word = $170;
: word = $112;
: word = $100;
: word = $101;
: word = $102;
: word = $113;
: byte = 17;
: byte = 3;
: byte = 8;
: byte = 12;
DPpage
write the page register of the DPRAM
loc: Complete address to read or write from
DPindex
write the the index register of the DPRAM
loc: Complete address to read or write from
DPread
read from the address specified by page and
index register of the DPRAM
: integer;
: byte;
: array[0..15] of byte;
: array[0..15] of byte;
: word;
: word;
Copyright Pepperl+Fuchs, Printed in Germany
AS-i PC2 Karte
Anhang
}
}
}
}
}
}
}
}
}
}
}
}
}
}
43

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis