Inherits com.boschrexroth.mlpi.MlpiComponent.
Public Member Functions | |
String | getNameOfFieldbus () |
native Io.IoFieldbusMasterInfo | readFieldbusMasterInfo () |
native void | updateFieldbusIo () |
native Io.IoFieldbusSlaveInfo[] | readFieldbusSlaveInfos () |
native void | writeFieldbusIoAsByteArray (String slaveAddress, Io.IoFieldbusArea area, int byteOffset, int byteLength, byte[] data) |
native byte[] | readFieldbusIoAsByteArray (String slaveAddress, Io.IoFieldbusArea area, int byteOffset, int byteLength) |
Class definition for fieldbusses.
Definition at line 63 of file Fieldbus.java.
|
inline |
This method returns the name of the fieldbus.
Definition at line 90 of file Fieldbus.java.
References com.boschrexroth.mlpi.Fieldbus.readFieldbusIoAsByteArray(), com.boschrexroth.mlpi.Fieldbus.readFieldbusMasterInfo(), com.boschrexroth.mlpi.Fieldbus.readFieldbusSlaveInfos(), com.boschrexroth.mlpi.Fieldbus.updateFieldbusIo(), and com.boschrexroth.mlpi.Fieldbus.writeFieldbusIoAsByteArray().
native Io.IoFieldbusMasterInfo com.boschrexroth.mlpi.Fieldbus.readFieldbusMasterInfo | ( | ) |
This method reads information about the fieldbus master.
mlpiIoReadFieldbusMasterInfo
, where you can find further documentation. Referenced by com.boschrexroth.mlpi.Fieldbus.getNameOfFieldbus().
native void com.boschrexroth.mlpi.Fieldbus.updateFieldbusIo | ( | ) |
This method performs a bus cycle in order to update the fieldbus I/Os of all attached slaves of the fieldbus.
mlpiIoUpdateFieldbusIo
, where you can find further documentation. Referenced by com.boschrexroth.mlpi.Fieldbus.getNameOfFieldbus().
native Io.IoFieldbusSlaveInfo [] com.boschrexroth.mlpi.Fieldbus.readFieldbusSlaveInfos | ( | ) |
This method reads information about the fieldbus slaves of a fieldbus master.
mlpiIoReadFieldbusSlaveInfos
, where you can find further documentation. Referenced by com.boschrexroth.mlpi.Fieldbus.getNameOfFieldbus().
native void com.boschrexroth.mlpi.Fieldbus.writeFieldbusIoAsByteArray | ( | String | slaveAddress, |
Io.IoFieldbusArea | area, | ||
int | byteOffset, | ||
int | byteLength, | ||
byte[] | data | ||
) |
This method writes a byte array to the fieldbus slave.
[in] | slaveAddress | Name or address of the slave to access. |
[in] | area | Area to access (Io.IoFieldbusArea). |
[in] | byteOffset | Byte offset based on zero. |
[in] | byteLength | Number of bytes to write from data array to the memory area. |
[in] | data | Input data array of bytes to be written to the given area at given byteOffset. Array has to be greater than or equal to byteLength. |
mlpiIoWriteFieldbusIoArrayUchar
, where you can find further documentation. Referenced by com.boschrexroth.mlpi.Fieldbus.getNameOfFieldbus().
native byte [] com.boschrexroth.mlpi.Fieldbus.readFieldbusIoAsByteArray | ( | String | slaveAddress, |
Io.IoFieldbusArea | area, | ||
int | byteOffset, | ||
int | byteLength | ||
) |
This method reads a byte array from the fieldbus slave.
[in] | slaveAddress | Name or address of the slave to access. |
[in] | area | Area to access (Io.IoFieldbusArea). |
[in] | byteOffset | Byte offset based on zero. |
[in] | byteLength | Number of bytes to read from the memory area. |
mlpiIoReadFieldbusIoArrayUchar
, where you can find further documentation. Referenced by com.boschrexroth.mlpi.Fieldbus.getNameOfFieldbus().