ACC-72EX User Manual
Software setup
105
// ACC-72EX Reading from PDO Sample PLC
/****************************************/
open
plc
Acc72EX_PDO_ReadPLC
if
(HCCC0_NCF_PD0_IN_CMD == HCCC0_HCF_PD0_IN_ACK)
// If CMD flag and ACK flags are
// equal, then the input data image
// register can be read
{
P201
=CC0_PD0_IN16(0);
// read the input data image register
HCCC0_HCF_PD0_IN_ACK = HCCC0_HCF_PD0_IN_ACK ^ 1
// toggle the acknowledge bit
// indicating read completion
}
close