File Information
Library: IoT/S7PLC
Package: Generated
Header: IoT/S7PLC/S7PLCClientRemoteObject.h
Description
Step7 PLC Client Interface.
Inheritance
Direct Base Classes: IS7PLCClient, Poco::RemotingNG::RemoteObject
All Base Classes: IS7PLCClient, Poco::OSP::Service, Poco::RefCountedObject, Poco::RemotingNG::Identifiable, Poco::RemotingNG::RemoteObject
Member Summary
Member Functions: abRead, abWrite, address, coldStart, connect, connected, dbRead, dbWrite, disconnect, ebRead, ebWrite, getCPUInfo, getDateTime, getOrderInfo, getStatus, hotStart, listBlocks, mbRead, mbWrite, rack, readByte, readDInt, readDWord, readFloat, readInt, readVariables, readWord, remoting__typeId, slot, stop, writeByte, writeDInt, writeDWord, writeFloat, writeInt, writeWord
Inherited Functions: abRead, abWrite, address, coldStart, connect, connected, dbRead, dbWrite, disconnect, duplicate, ebRead, ebWrite, getCPUInfo, getDateTime, getOrderInfo, getStatus, hotStart, isA, listBlocks, mbRead, mbWrite, mutex, rack, readByte, readDInt, readDWord, readFloat, readInt, readVariables, readWord, referenceCount, release, remoting__enableRemoteEvents, remoting__getURI, remoting__hasEvents, remoting__objectId, remoting__setURI, remoting__typeId, slot, stop, type, writeByte, writeDInt, writeDWord, writeFloat, writeInt, writeWord
Types Aliases
Ptr
using Ptr = Poco::AutoPtr < S7PLCClientRemoteObject >;
Constructors
S7PLCClientRemoteObject
S7PLCClientRemoteObject(
const Poco::RemotingNG::Identifiable::ObjectId & oid,
Poco::SharedPtr < IoT::S7PLC::S7PLCClient > pServiceObject
);
Creates a S7PLCClientRemoteObject.
Destructor
~S7PLCClientRemoteObject
virtual ~S7PLCClientRemoteObject();
Destroys the S7PLCClientRemoteObject.
Member Functions
abRead
std::vector < char > abRead(
int start,
int size
);
Performs a AB ("Ausgang"/output, bytewise) read operation.
See also: IoT::S7PLC::IS7PLCClient::abRead()
abWrite
virtual void abWrite(
int start,
const std::vector < char > & data
);
Performs a AB ("Ausgang"/output, bytewise) write operation.
See also: IoT::S7PLC::IS7PLCClient::abWrite()
address
virtual std::string address() const;
Returns the PLC address.
See also: IoT::S7PLC::IS7PLCClient::address()
coldStart
virtual void coldStart();
Performs a cold start.
See also: IoT::S7PLC::IS7PLCClient::coldStart()
connect
virtual void connect();
Connects to the PLC.
See also: IoT::S7PLC::IS7PLCClient::connect()
connected
virtual bool connected() const;
Returns true if the client is connected to the PLC, otherwise false.
See also: IoT::S7PLC::IS7PLCClient::connected()
dbRead
std::vector < char > dbRead(
int dbNumber,
int start,
int size
);
Performs a DB ("Datenbaustein"/data block, bytewise) read operation.
See also: IoT::S7PLC::IS7PLCClient::dbRead()
dbWrite
virtual void dbWrite(
int dbNumber,
int start,
const std::vector < char > & data
);
Performs a DB ("Datenbaustein"/data block, bytewise) write operation.
See also: IoT::S7PLC::IS7PLCClient::dbWrite()
disconnect
virtual void disconnect();
Disconnects from the PLC.
See also: IoT::S7PLC::IS7PLCClient::disconnect()
ebRead
std::vector < char > ebRead(
int start,
int size
);
Performs a EB ("Eingang"/input, bytewise) read operation.
See also: IoT::S7PLC::IS7PLCClient::ebRead()
ebWrite
virtual void ebWrite(
int start,
const std::vector < char > & data
);
Performs a EB ("Eingang"/input, bytewise) write operation.
See also: IoT::S7PLC::IS7PLCClient::ebWrite()
getCPUInfo
IoT::S7PLC::CPUInfo getCPUInfo();
Returns CPU information.
See also: IoT::S7PLC::IS7PLCClient::getCPUInfo()
getDateTime
virtual Poco::DateTime getDateTime();
Returns the PLC's date and time.
See also: IoT::S7PLC::IS7PLCClient::getDateTime()
getOrderInfo
IoT::S7PLC::OrderInfo getOrderInfo();
Returns order code and version information.
See also: IoT::S7PLC::IS7PLCClient::getOrderInfo()
getStatus
IoT::S7PLC::PLCStatus getStatus();
Returns the PLC status.
See also: IoT::S7PLC::IS7PLCClient::getStatus()
hotStart
virtual void hotStart();
Performs a hot start.
See also: IoT::S7PLC::IS7PLCClient::hotStart()
listBlocks
IoT::S7PLC::BlockInfo listBlocks();
Returns information about available blocks.
See also: IoT::S7PLC::IS7PLCClient::listBlocks()
mbRead
std::vector < char > mbRead(
int start,
int size
);
Performs a MB ("Merker"/mnemonic, bytewise) read operation.
See also: IoT::S7PLC::IS7PLCClient::mbRead()
mbWrite
virtual void mbWrite(
int start,
const std::vector < char > & data
);
Performs a MB ("Merker"/mnemonic, bytewise) write operation.
See also: IoT::S7PLC::IS7PLCClient::mbWrite()
rack
virtual int rack() const;
Returns the PLC rack number.
See also: IoT::S7PLC::IS7PLCClient::rack()
readByte
virtual Poco::UInt8 readByte(
int dbNumber,
int address
);
Reads a single byte from a data block.
See also: IoT::S7PLC::IS7PLCClient::readByte()
readDInt
virtual Poco::Int32 readDInt(
int dbNumber,
int address
);
Reads a single 32-bit integer from a data block.
See also: IoT::S7PLC::IS7PLCClient::readDInt()
readDWord
virtual Poco::UInt32 readDWord(
int dbNumber,
int address
);
Reads a single 32-bit double word from a data block.
See also: IoT::S7PLC::IS7PLCClient::readDWord()
readFloat
virtual float readFloat(
int dbNumber,
int address
);
Reads a single 32-bit float from a data block.
See also: IoT::S7PLC::IS7PLCClient::readFloat()
readInt
virtual Poco::Int16 readInt(
int dbNumber,
int address
);
Reads a single 16-bit integer from a data block.
See also: IoT::S7PLC::IS7PLCClient::readInt()
readVariables
std::vector < double > readVariables(
int dbNumber,
const std::vector < IoT::S7PLC::VariableDescriptor > & descriptors
);
Reads multiple variables specified by descriptors and converts them to double values, optionally applying a scale (slope) and offset (intercept).
readWord
virtual Poco::UInt16 readWord(
int dbNumber,
int address
);
Reads a single 16-bit word from a data block.
See also: IoT::S7PLC::IS7PLCClient::readWord()
remoting__typeId
virtual const Poco::RemotingNG::Identifiable::TypeId & remoting__typeId() const;
slot
virtual int slot() const;
Returns the PLC slot number.
See also: IoT::S7PLC::IS7PLCClient::slot()
stop
virtual void stop();
Stops the PLC.
See also: IoT::S7PLC::IS7PLCClient::stop()
writeByte
virtual void writeByte(
int dbNumber,
int address,
Poco::UInt8 value
);
Writes a single byte to a data block.
See also: IoT::S7PLC::IS7PLCClient::writeByte()
writeDInt
virtual void writeDInt(
int dbNumber,
int address,
Poco::Int32 value
);
Writes a single 32-bit integer to a data block.
See also: IoT::S7PLC::IS7PLCClient::writeDInt()
writeDWord
virtual void writeDWord(
int dbNumber,
int address,
Poco::UInt32 value
);
Writes a single 32-bit double word to a data block.
See also: IoT::S7PLC::IS7PLCClient::writeDWord()
writeFloat
virtual void writeFloat(
int dbNumber,
int address,
float value
);
Writes a single 32-bit float to a data block.
See also: IoT::S7PLC::IS7PLCClient::writeFloat()
writeInt
virtual void writeInt(
int dbNumber,
int address,
Poco::Int16 value
);
Writes a single 16-bit integer to a data block.
See also: IoT::S7PLC::IS7PLCClient::writeInt()
writeWord
virtual void writeWord(
int dbNumber,
int address,
Poco::UInt16 value
);
Writes a single 16-bit word to a data block.
See also: IoT::S7PLC::IS7PLCClient::writeWord()