ACC-72EX User Manual
Software setup
101
/***********************************************************************************************/
/* ACC-72EX requires different wait states compared to default wait state settings in Power PMAC
/* Write added wait state 60 nanoseconds
/* Delay of write line going low after chip select goes low 10 nanoseconds
/* Take write line high 20 nanosecond earlier FALSE
/* Read added wait state 60 nanoseconds
/* Delay of read line going low after chip select goes low 10 nanoseconds
/***********************************************************************************************/
Sys.BusCtrl[14]=$4646
Sys.BusCtrl[15]=$4646
global CommErrorFlag=0;
Initialization PLC
Recall that ACC-72EX requires a reset after each power up, power cycle, $$$ (reset), or $$$*** (factory
default reset). This can be achieved with a startup (or initialization) PLC. Example:
// ACC-72EX initialization PLC
/****************************************/
open
plc
Acc72EX_StartupPLC
local
endtime;
disable
plc
2..31
// Disable all other tasks
// Defining pointers for system channel mailboxes
L0
=0
while
(
L0
<84)
{
CMD
"SSMB_Data8(%d)->Acc72Ex[0].Data8[%d]"
,
L0
,
L0
+300
sendallcmds
L0
++
}
L0
=0
while
(
L0
<42)
{
CMD
"SSMB_Data16(%d)->Acc72Ex[0].uData16[%d]"
,
L0
,
L0
+150
sendallcmds
L0
++
}
L0
=0
while
(
L0
<21)
{
CMD
"SSMB_Data32(%d)->Acc72Ex[0].uData32[%d]"
,
L0
,
L0
+75
sendallcmds
L0
++
}
L0
=0
while
(
L0
<84)
{
CMD
"SRMB_Data8(%d)->Acc72Ex[0].Data8[%d]"
,
L0
,
L0
+428
sendallcmds
L0
++
}
L0
=0
while
(
L0
<42)
{
CMD
"SRMB_Data16(%d)->Acc72Ex[0].uData16[%d]"
,
L0
,
L0
+214
sendallcmds