plcopen 0.22.0
载入中...
搜索中...
未找到
plcopen::core::st::Instance类 参考

#include <vm.h>

Public 成员函数

 Instance ()=default
 Instance (const Instance &)=delete
Instance & operator= (const Instance &)=delete
 Instance (Instance &&)=delete
Instance & operator= (Instance &&)=delete
 ~Instance ()
rt::ErrorCode inject_utc_dt (std::int64_t value) noexcept
std::int64_t utc_dt_ns () const noexcept
void unload () noexcept
rt::ErrorCode load (const Program &program, unsigned char *buffer, std::size_t buffer_bytes, std::int64_t task_period_ns)
rt::ErrorCode load (const Program &program, unsigned char *buffer, std::size_t buffer_bytes, std::int64_t task_period_ns, ProcessImage *process_image)
rt::ErrorCode load (const Program &program, const char *program_name, unsigned char *buffer, std::size_t buffer_bytes, std::int64_t task_period_ns)
BindingError bind_axis (const char *name, axis::AxisModel *axis)
BindingError bind_group (const char *name, axis::AxisGroup *group)
BindingError bind_reference (const char *name, BindingTarget target)
BindingError bind_path_table (const char *name, fb::PathTable *table)
BindingError bind_path_description (const char *name, const fb::PathWaypoint *waypoints, std::size_t count)
BindingError bind_kin_transform (const char *name, axis::KinTransformRef transform)
BindingError bind_cam_switch_table (const char *name, const fb::CamSwitchAction *data, std::size_t count)
BindingError bind_cam_switch_outputs (const char *name, bool *data, std::size_t count)
BindingError bind_cam_track_options (const char *name, const fb::CamTrackOption *data, std::size_t count)
BindingError bind_cam_table (const char *name, const exec::CamPoint *data, std::size_t count, bool periodic)
BindingError bind_position_profile (const char *name, const BindingPositionProfileEntry *entries, std::size_t count)
BindingError bind_velocity_profile (const char *name, const BindingVelocityProfileEntry *entries, std::size_t count)
BindingError bind_acceleration_profile (const char *name, const BindingAccelerationProfileEntry *entries, std::size_t count)
void reset ()
ScanError fault () const
InstanceState execution_state () const noexcept
bool running () const noexcept
bool complete () const noexcept
void defer_process_image_publish (bool defer) noexcept
std::int64_t remaining_budget () const noexcept
std::uint32_t instruction_offset () const noexcept
const char * program_name () const noexcept
void set_debug_hooks (RuntimeDebugHooks *hooks, std::size_t mapping) noexcept
const Program * program () const noexcept
const SourceMapEntry * last_debug_entry () const noexcept
const InstructionId & last_debug_instruction_id () const noexcept
bool read_variable (std::uint32_t offset, std::uint32_t size, unsigned char *destination) const noexcept
rt::ErrorCode sfc_step_active (const char *network_name, const char *step_name, bool &active) const noexcept
bool debug_sfc_committed_step_active (std::size_t network, std::size_t step) const noexcept
rt::ErrorCode configure_sfc_trace (SfcTraceRecord *records, std::size_t capacity) noexcept
std::size_t sfc_trace_size () const noexcept
std::uint64_t sfc_trace_dropped () const noexcept
rt::ErrorCode restart_sfc (const char *network_name) noexcept
std::uint32_t fault_sfc_network_index () const noexcept
std::uint32_t fault_sfc_element_index () const noexcept
TaskFaultElementKind fault_sfc_element_kind () const noexcept
ScanError begin (std::int64_t budget)
void abort () noexcept
ScanError scan (std::int64_t budget)
ScanError resume (std::int64_t slice, std::int64_t &executed)
std::size_t variable_count () const
const VarInfo * variable (std::size_t index) const
int find (const char *name) const
std::int64_t value_i64 (std::size_t index) const
double value_f64 (std::size_t index) const
bool value_bool (std::size_t index) const

详细描述

在文件 vm.h 第 80 行定义.

构造及析构函数说明

◆ Instance() [1/3]

plcopen::core::st::Instance::Instance ( )
default

◆ Instance() [2/3]

plcopen::core::st::Instance::Instance ( const Instance & )
delete

◆ Instance() [3/3]

plcopen::core::st::Instance::Instance ( Instance && )
delete

◆ ~Instance()

plcopen::core::st::Instance::~Instance ( )
inline

在文件 vm.h 第 89 行定义.

成员函数说明

◆ abort()

void plcopen::core::st::Instance::abort ( )
inlinenoexcept

在文件 vm.h 第 788 行定义.

◆ begin()

ScanError plcopen::core::st::Instance::begin ( std::int64_t budget)
inline

在文件 vm.h 第 750 行定义.

◆ bind_acceleration_profile()

BindingError plcopen::core::st::Instance::bind_acceleration_profile ( const char * name,
const BindingAccelerationProfileEntry * entries,
std::size_t count )
inline

在文件 vm.h 第 564 行定义.

◆ bind_axis()

BindingError plcopen::core::st::Instance::bind_axis ( const char * name,
axis::AxisModel * axis )
inline

在文件 vm.h 第 274 行定义.

◆ bind_cam_switch_outputs()

BindingError plcopen::core::st::Instance::bind_cam_switch_outputs ( const char * name,
bool * data,
std::size_t count )
inline

在文件 vm.h 第 452 行定义.

◆ bind_cam_switch_table()

BindingError plcopen::core::st::Instance::bind_cam_switch_table ( const char * name,
const fb::CamSwitchAction * data,
std::size_t count )
inline

在文件 vm.h 第 413 行定义.

◆ bind_cam_table()

BindingError plcopen::core::st::Instance::bind_cam_table ( const char * name,
const exec::CamPoint * data,
std::size_t count,
bool periodic )
inline

在文件 vm.h 第 483 行定义.

◆ bind_cam_track_options()

BindingError plcopen::core::st::Instance::bind_cam_track_options ( const char * name,
const fb::CamTrackOption * data,
std::size_t count )
inline

在文件 vm.h 第 467 行定义.

◆ bind_group()

BindingError plcopen::core::st::Instance::bind_group ( const char * name,
axis::AxisGroup * group )
inline

在文件 vm.h 第 279 行定义.

◆ bind_kin_transform()

BindingError plcopen::core::st::Instance::bind_kin_transform ( const char * name,
axis::KinTransformRef transform )
inline

在文件 vm.h 第 385 行定义.

◆ bind_path_description()

BindingError plcopen::core::st::Instance::bind_path_description ( const char * name,
const fb::PathWaypoint * waypoints,
std::size_t count )
inline

在文件 vm.h 第 355 行定义.

◆ bind_path_table()

BindingError plcopen::core::st::Instance::bind_path_table ( const char * name,
fb::PathTable * table )
inline

在文件 vm.h 第 344 行定义.

◆ bind_position_profile()

BindingError plcopen::core::st::Instance::bind_position_profile ( const char * name,
const BindingPositionProfileEntry * entries,
std::size_t count )
inline

在文件 vm.h 第 497 行定义.

◆ bind_reference()

BindingError plcopen::core::st::Instance::bind_reference ( const char * name,
BindingTarget target )
inline

在文件 vm.h 第 284 行定义.

◆ bind_velocity_profile()

BindingError plcopen::core::st::Instance::bind_velocity_profile ( const char * name,
const BindingVelocityProfileEntry * entries,
std::size_t count )
inline

在文件 vm.h 第 532 行定义.

◆ complete()

bool plcopen::core::st::Instance::complete ( ) const
inlinenoexcept

在文件 vm.h 第 607 行定义.

◆ configure_sfc_trace()

rt::ErrorCode plcopen::core::st::Instance::configure_sfc_trace ( SfcTraceRecord * records,
std::size_t capacity )
inlinenoexcept

在文件 vm.h 第 704 行定义.

◆ debug_sfc_committed_step_active()

bool plcopen::core::st::Instance::debug_sfc_committed_step_active ( std::size_t network,
std::size_t step ) const
inlinenoexcept

在文件 vm.h 第 693 行定义.

◆ defer_process_image_publish()

void plcopen::core::st::Instance::defer_process_image_publish ( bool defer)
inlinenoexcept

在文件 vm.h 第 612 行定义.

◆ execution_state()

InstanceState plcopen::core::st::Instance::execution_state ( ) const
inlinenoexcept

在文件 vm.h 第 602 行定义.

◆ fault()

ScanError plcopen::core::st::Instance::fault ( ) const
inline

在文件 vm.h 第 597 行定义.

◆ fault_sfc_element_index()

std::uint32_t plcopen::core::st::Instance::fault_sfc_element_index ( ) const
inlinenoexcept

在文件 vm.h 第 741 行定义.

◆ fault_sfc_element_kind()

TaskFaultElementKind plcopen::core::st::Instance::fault_sfc_element_kind ( ) const
inlinenoexcept

在文件 vm.h 第 745 行定义.

◆ fault_sfc_network_index()

std::uint32_t plcopen::core::st::Instance::fault_sfc_network_index ( ) const
inlinenoexcept

在文件 vm.h 第 737 行定义.

◆ find()

int plcopen::core::st::Instance::find ( const char * name) const
inline

在文件 vm.h 第 2704 行定义.

◆ inject_utc_dt()

rt::ErrorCode plcopen::core::st::Instance::inject_utc_dt ( std::int64_t value)
inlinenoexcept

在文件 vm.h 第 91 行定义.

◆ instruction_offset()

std::uint32_t plcopen::core::st::Instance::instruction_offset ( ) const
inlinenoexcept

在文件 vm.h 第 620 行定义.

◆ last_debug_entry()

const SourceMapEntry * plcopen::core::st::Instance::last_debug_entry ( ) const
inlinenoexcept

在文件 vm.h 第 641 行定义.

◆ last_debug_instruction_id()

const InstructionId & plcopen::core::st::Instance::last_debug_instruction_id ( ) const
inlinenoexcept

在文件 vm.h 第 648 行定义.

◆ load() [1/3]

rt::ErrorCode plcopen::core::st::Instance::load ( const Program & program,
const char * program_name,
unsigned char * buffer,
std::size_t buffer_bytes,
std::int64_t task_period_ns )
inline

在文件 vm.h 第 223 行定义.

◆ load() [2/3]

rt::ErrorCode plcopen::core::st::Instance::load ( const Program & program,
unsigned char * buffer,
std::size_t buffer_bytes,
std::int64_t task_period_ns )
inline

在文件 vm.h 第 141 行定义.

◆ load() [3/3]

rt::ErrorCode plcopen::core::st::Instance::load ( const Program & program,
unsigned char * buffer,
std::size_t buffer_bytes,
std::int64_t task_period_ns,
ProcessImage * process_image )
inline

在文件 vm.h 第 210 行定义.

◆ operator=() [1/2]

Instance & plcopen::core::st::Instance::operator= ( const Instance & )
delete

◆ operator=() [2/2]

Instance & plcopen::core::st::Instance::operator= ( Instance && )
delete

◆ program()

const Program * plcopen::core::st::Instance::program ( ) const
inlinenoexcept

在文件 vm.h 第 639 行定义.

◆ program_name()

const char * plcopen::core::st::Instance::program_name ( ) const
inlinenoexcept

在文件 vm.h 第 624 行定义.

◆ read_variable()

bool plcopen::core::st::Instance::read_variable ( std::uint32_t offset,
std::uint32_t size,
unsigned char * destination ) const
inlinenoexcept

在文件 vm.h 第 657 行定义.

◆ remaining_budget()

std::int64_t plcopen::core::st::Instance::remaining_budget ( ) const
inlinenoexcept

在文件 vm.h 第 616 行定义.

◆ reset()

void plcopen::core::st::Instance::reset ( )
inline

在文件 vm.h 第 591 行定义.

◆ restart_sfc()

rt::ErrorCode plcopen::core::st::Instance::restart_sfc ( const char * network_name)
inlinenoexcept

在文件 vm.h 第 725 行定义.

◆ resume()

ScanError plcopen::core::st::Instance::resume ( std::int64_t slice,
std::int64_t & executed )
inline

在文件 vm.h 第 823 行定义.

◆ running()

bool plcopen::core::st::Instance::running ( ) const
inlinenoexcept

在文件 vm.h 第 603 行定义.

◆ scan()

ScanError plcopen::core::st::Instance::scan ( std::int64_t budget)
inline

在文件 vm.h 第 813 行定义.

◆ set_debug_hooks()

void plcopen::core::st::Instance::set_debug_hooks ( RuntimeDebugHooks * hooks,
std::size_t mapping )
inlinenoexcept

在文件 vm.h 第 629 行定义.

◆ sfc_step_active()

rt::ErrorCode plcopen::core::st::Instance::sfc_step_active ( const char * network_name,
const char * step_name,
bool & active ) const
inlinenoexcept

在文件 vm.h 第 668 行定义.

◆ sfc_trace_dropped()

std::uint64_t plcopen::core::st::Instance::sfc_trace_dropped ( ) const
inlinenoexcept

在文件 vm.h 第 720 行定义.

◆ sfc_trace_size()

std::size_t plcopen::core::st::Instance::sfc_trace_size ( ) const
inlinenoexcept

在文件 vm.h 第 719 行定义.

◆ unload()

void plcopen::core::st::Instance::unload ( )
inlinenoexcept

在文件 vm.h 第 98 行定义.

◆ utc_dt_ns()

std::int64_t plcopen::core::st::Instance::utc_dt_ns ( ) const
inlinenoexcept

在文件 vm.h 第 96 行定义.

◆ value_bool()

bool plcopen::core::st::Instance::value_bool ( std::size_t index) const
inline

在文件 vm.h 第 2754 行定义.

◆ value_f64()

double plcopen::core::st::Instance::value_f64 ( std::size_t index) const
inline

在文件 vm.h 第 2742 行定义.

◆ value_i64()

std::int64_t plcopen::core::st::Instance::value_i64 ( std::size_t index) const
inline

在文件 vm.h 第 2730 行定义.

◆ variable()

const VarInfo * plcopen::core::st::Instance::variable ( std::size_t index) const
inline

在文件 vm.h 第 2695 行定义.

◆ variable_count()

std::size_t plcopen::core::st::Instance::variable_count ( ) const
inline

在文件 vm.h 第 2690 行定义.


该类的文档由以下文件生成: