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