public class PPIDataBlock extends PLCDataBlock
Modifier and Type | Field and Description |
---|---|
static int |
COMPLETE
PDU finished.
|
static java.lang.String |
cvsRev |
static int |
MAX_POLL_STATUS
PDU needs poll.
|
static int |
NAK_RR
PDU NAK Error - No resources.
|
static int |
NAK_RS
PDU NAK Error - No service activated.
|
static int |
NEEDS_POLL
PDU needs poll.
|
static int |
POLL_COMPLETE
PDU needs poll.
|
static int |
TIMEOUT
PDU timeout error.
|
static int |
UNKNOWN_ERROR
PDU some other error.
|
Constructor and Description |
---|
PPIDataBlock(byte[] data,
byte dest)
Create the block with the data and the destination address.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object test)
Check for equality.
|
int |
getDataId()
Returns the dataId.
|
byte |
getDestination()
Returns the destination address.
|
PPIDataBlock |
getResponse()
Returns the response.
|
int |
getStatus()
Returns the status.
|
long |
getTimestamp()
Returns the timestamp.
|
void |
setDataId(int dataId)
Returns the dataId.
|
void |
setDestination(byte dest)
Returns the destination address.
|
void |
setResponse(PPIDataBlock response)
Returns the timestamp.
|
void |
setStatus(int status)
Returns the status.
|
void |
setTimestamp(long timestamp)
Returns the timestamp.
|
public static final int COMPLETE
public static final java.lang.String cvsRev
public static final int MAX_POLL_STATUS
public static final int NAK_RR
public static final int NAK_RS
public static final int NEEDS_POLL
public static final int POLL_COMPLETE
public static final int TIMEOUT
public static final int UNKNOWN_ERROR
public PPIDataBlock(byte[] data, byte dest)
public boolean equals(java.lang.Object test)
equals
in class PLCDataBlock
public int getDataId()
public byte getDestination()
public PPIDataBlock getResponse()
public int getStatus()
public long getTimestamp()
public void setDataId(int dataId)
public void setDestination(byte dest)
public void setResponse(PPIDataBlock response)
public void setStatus(int status)
public void setTimestamp(long timestamp)
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.