| Package | Description |
|---|---|
| stella.io | |
| stella.net.ads | |
| stella.net.ads.type |
| Modifier and Type | Field and Description |
|---|---|
private Map<String,AdsValue> |
PollingBeckhoffServer.known
The entire set of variables known in the PLC.
|
| Modifier and Type | Method and Description |
|---|---|
private boolean |
PollingBeckhoffServer.writeBeckhoff(String name,
AdsValue skel,
Number value) |
| Modifier and Type | Field and Description |
|---|---|
private AdsValue |
AdsValue.Types.skeleton |
| Modifier and Type | Field and Description |
|---|---|
private Map<String,AdsValue> |
AdsVariableMonitor.known
The entire set of variables known in the PLC.
|
| Modifier and Type | Method and Description |
|---|---|
AdsValue |
AdsValue.Types.getSkeleton() |
static AdsValue |
AdsValue.Types.getSkeletonFromChar(char abb)
From a single-char abbreviation get the ads value type as an
AdsValue.
|
static AdsValue |
AdsValue.Types.getSkeletonFromCode(int dec)
From the ADS-internal type code, see,
int_codes, we return the appropriate AdsValue Type.
|
| Modifier and Type | Method and Description |
|---|---|
private Map<String,AdsValue> |
AdsVariableMonitor.getAdsTypes(Collection<String> vars) |
Map<String,AdsValue> |
AdsSocketChannel.getAllVariables()
Following the sparse documentation, we are able to get a variable name
plus its value skeleton out of the device info of the beckhoff system.
|
| Modifier and Type | Method and Description |
|---|---|
Number |
AdsSocketChannel.getNumericByHandle(long handle,
AdsValue skeleton)
Reads a number from a re-usable handle.
|
Number |
AdsSocketChannel.getNumericByName(String name,
AdsValue skeleton)
Queries a variable by name, returning the result as a number.
|
private static void |
AdsSocketChannel.Info.printVariable(AdsSocketChannel ads,
String name,
AdsValue skel) |
boolean |
AdsSocketChannel.writeNumericToHandle(long handle,
AdsValue skeleton,
Number push) |
boolean |
AdsSocketChannel.writeNumericToName(String name,
AdsValue skeleton,
Number push) |
| Modifier and Type | Method and Description |
|---|---|
private Map<String,Number> |
AdsVariableMonitor.getAdsValues(Map<String,Long> handles,
Map<String,AdsValue> skel) |
private int |
AdsSocketChannel.getSumBytes(Collection<AdsValue> vars) |
Map<String,Number> |
AdsSocketChannel.getValuesByHandleBlock(Map<String,Long> handle,
Map<String,AdsValue> type)
We read in numerical values for all handles.
|
Map<String,Number> |
AdsSocketChannel.getValuesByNameBlock(Map<String,AdsValue> skel)
Queries a variable by name, returning the result as a number.
|
private List<String> |
AdsSocketChannel.prepareSumBuffer(Map<String,Long> handle,
Map<String,AdsValue> type,
ByteBuffer into) |
private static void |
AdsSocketChannel.Info.printVariableBlock(AdsSocketChannel ads,
Map<String,AdsValue> skel) |
private Map<String,Object> |
AdsVariableMonitor.readBeckhoff(Collection<String> vars,
Map<String,AdsValue> skel)
Refreshing a list of variables in a Beckhoff-ADS context means
querying the
underlying socket and returning the result.
|
void |
AdsVariableMonitor.setKnown(Map<String,AdsValue> known)
Sets the list of all known variables, can be deduced from the driver
info.
|
boolean |
AdsSocketChannel.writeValuesByHandleBlock(Map<String,Long> handle,
Map<String,AdsValue> type,
Map<String,Number> value)
We write numerical values for all handles.
|
| Constructor and Description |
|---|
Types(AdsValue skel,
int c,
char abb) |
| Modifier and Type | Class and Description |
|---|---|
class |
AdsByte
A signed byte.
|
class |
AdsDouble
A float, 8 bytes
|
class |
AdsFloat
A float, 4 bytes
|
class |
AdsInteger
Signed integer i32.
|
class |
AdsLong
A long, 8 bytes
|
class |
AdsShort
A signed i16, short
|
class |
AdsWord16
An unsigned 16bit.
|
class |
AdsWord32
An unsigned 32bit integer.
|
class |
AdsWord64
An unsigned 64bit integer.
|
class |
AdsWord8
An unsigned byte.
|