Cpu Members

<< 点击显示目录 >>

主页  PVI通信 > PVI帮助信息 > PVI Services > BR.AN.Namespace > BR.AN.PviServices > Cpu Class >

Cpu Members

BR.AN.PviServices .NET


Cpu overview

Public Static (Shared) Fields

pubfieldstaticKW_DETECT_SYSLOGBOOK_NAME

The name of the system log book for SG4 targets ("$arlogsys").

Public Instance Constructors

pubmethod Cpu Constructor

Initializes a new instance of the Cpu class.

Public Instance Properties

pubpropertyAccu

Gets the state of the accu of the PLC

pubpropertyApplicationMemory

Obsolete. Gets the ApplicationMemory type of the cpu. Return an empty String if the Cpu has no ApplicationMemory

pubpropertyApplicationModuleFilter

Gets or sets the /AM (ApplicationModule) parameter for the communication to the PLC. If null the parameter will not be set at all. The communication instance will use the setting from "PviConfig.xml". null ... The application module name will not be used by PviServices. "::" ... The application module name can also be an empty string which is also called the "Default" application module. "*::" ... access to all application modules is allowed. "ApplicationModuleName::" ... the access is limited to application module "ApplicationModuleName" and to the empty application module name.

pubpropertyBattery

Gets the state of the battery of the PLC

pubpropertyBondInformationStruct

Gets the bond info received in BondInfoChanged.

pubpropertyBootMode

Gets the bootmode of this instance.

pubpropertyConnection

Gets the Connection object of this instance.

pubpropertyCpuUsage

Gets the percantage value (from 0 to 100) for the CPU usage. Can only be used for ANSL connections. Will return zero for INA2000 connections. Call UpdateCpuInfo to force a reread of the CPU info.

pubpropertyCurrentCyclicSystemUsage

Gets the performance of the cyclic CPU System. Value (0-100).

pubpropertyFullName

Gets the FullName of this instance.

pubpropertyHardwareInfo

Gets the Hardware info. Format is XML. Call ReadHardwareInfo if the string is empty.

pubpropertyHardwareInformationStruct

Gets the Hardware info. Call ReadHardwareInfo if null.

pubpropertyHardwareInfos

Gets the collection of hardware infos.

pubpropertyHasErrorLogBook

Gets if this CPU includes the oldstyle error logbook.

pubpropertyIODataPoints

A Collection of IODataPoints. Execute Method IODataPointCollection.Upload to get all IOs from the PLC.

pubpropertyIsConnected

Gets or sets the connection state of the PviServices object

pubpropertyIsSG4Target

Gets if it is an SG4 target.

pubpropertyLibraries

Gets the collection of the libraries.

pubpropertyLicenseStatusError

Returns the status error information extracted from the XML string .

pubpropertyLicenseStatusInfo

Returns the status information of PLC license as XML string

pubpropertyLoggers

Gets the collection fo logger modules.

pubpropertyMemories

Gets the actually uploaded memories of the device.

pubpropertyMemoryInfo

Gets the memory info. Format is XML. Call ReadMemoryInfo if the string is empty.

pubpropertyMemoryInformationStruct

Gets the memory info. Call ReadMemoryInfo if null.

pubpropertyModules

Gets the actually uploaded modules of the device.

pubpropertyNodeNumber

Gets the nodenumber of the cpu.

pubpropertyObjectsOnTarget

Gets the collection of objects listed on the target. This collection can only be used when using ANSL as communication protocol!

pubpropertyProfiler

Get the profiler.

pubpropertyPviPathName

Gets the PviPathName of this instance.

pubpropertyRedundancyCommMode

Gets or sets wheter to start a redundant communication to the PLC or not. If set to true the the PLC communication will be handled using cluster- primary- and secondary- Cpu connectrion settings. (/RED=1)

pubpropertyRedundancyInfo

Gets the redundancy info. Format is XML. Call ReadRedundancyInfo if the string is empty.

pubpropertyRedundancyInformationStruct

Gets the redundancy info. Call ReadRedundancyInfo if null.

pubpropertyResponseTimeout

Gets or sets the Response timeout in milliseconds. This parameter is part of the connection object! So when changing the connection object the ResponseTimout will change too although the parameter is a member of the CPU object!! If you want to change the ResponseTimeout, you will have to set the device object before!! If a response to a sent frame is not received with this time, then the frame is transferred again. After the third retry, the connection is deemed cancelled. The time in which an interrupted connection is detected is a result of the Response Timeout * 4.

pubpropertyRuntimeVersion

Gets the operating-system version of this cpu-instance.

pubpropertySavePath

Gets the SavePath property of the cpu.

pubpropertyState

Gets the state of this instance.

pubpropertyTaskClasses

Gets the actually uploaded taskclasses of the device.

pubpropertyTasks

Gets the actually uploaded tasks of the device.

pubpropertyTcpDestinationSettings

Gets the destination parameters for a tcp connection. The object has to be connected and a call to ReadTCPDestinationSettings has to be used to retrieve the settings. The settings will be valid as soon as TCPDestinationSettingsRead has been fired.

pubpropertyTextModules

The collection of TextModules

pubpropertyType

Gets the type of this cpu-instance.

pubpropertyVariables

Gets the actually uploaded global variables of the device.

Public Instance Methods

pubmethodBlinkDongle

Casues the dongle to start blinking.

pubmethodChangeConnection

Use this member function to change the connection of the CPU object. When the function has changed the connection the Event ConnectionChanged will be fired.

pubmethodClearMemory

Use this method to clear any of the PLC memory types. You can also use Clean Method of the Memory Class to do the same. PLC has to be in DIAGNOSTIC mode!!!

pubmethodCompareRuntimeVersionTo

Call this method to see if the given version is

pubmethodConnect

Overloaded. Creates a connection to the physical Cpu using the specified connection parameters set in the connectiono object properties. (see: Connection class)

pubmethodDeleteModule

Delete the Module on the plc

pubmethodDisconnect

Overloaded. Disconnects this instance from its device.

pubmethodDisconnectChildObjects

Call this method to disonnect all child objects

pubmethodFromXmlTextReader

Reads the configuration from xml configuration file and updates.

pubmethodGetExistingLicense

Gets the list of licenses for the PLC project and OS

pubmethodGetLicenseContext

Overloaded. Reads the ontext data for a specified serial number using the set box mask and the defined firm- codes.

pubmethodGetLicenseStatus

Overloaded. Reads the license state.

pubmethodGetListOfDongles

Gets the list of dongles for the PLC project and OS

pubmethodGetRequiredLicenses

Gets the list of required licenses

pubmethodGlobalForceOFF

Use this method to set the global Force mode to OFF

pubmethodReadApplicationInfo

Call this method to read the application/project info. The data will be provided as XML string in the event HardwareInfoRead.

pubmethodReadCommunicationLibraryVersions

Call this method to retrive the version information of the communication component DLLs. The result will be available as name to version pair.

pubmethodReadDateTime

Read the CpuTime from the plc

pubmethodReadHardwareInfo

Call this method to read the hardware info. The data will be provided as XML string in the event HardwareInfoRead.

pubmethodReadMemoryInfo

Call this method to read the memory info. The data will be provided as XML string in the event RedundancyInfoRead.

pubmethodReadRedundancyInfo

Call this method to read the redundancy info. The data will be provided as XML string in the event RedundancyInfoRead. This command is only valid for a redundancy SYSTEM.

pubmethodReadSavePath

Reads the SavePath property of the CPU object.

pubmethodReadTCPDestinationSettings

Call this method to get the destionation settings for an existing tcp connection.

pubmethodReadTOC

Reads the table of contens from the connected CPU. The responsedata will be available in the event .

pubmethodRemove

This method removes the instances references from the PviServices hierarchy.

pubmethodRestart

Restarts the Cpu on the Plc.

pubmethodSwitchActiveCpu

Overloaded. Call this method to switch the active CPU of a redundancy PLC pair. This command is only valid for a redundancy SYSTEM.

pubmethodSynchronizeRApplication

Call this method to switch the active CPU of a redundancy PLC pair. This command is only valid for a redundancy SYSTEM.

pubmethodUpdateCpuInfo

Call this method to Update the CPU Info. The CPU info is up to date as soon as the connection to the PLC has been established. Will rasie the event CpuInfoUpdated and update the properties RuntimeVersion, NodeNumber, BootMode, State, Type, CpuUsage and Accu.

pubmethodUpdateLicenseData

Updates the licence data on the PLC.

pubmethodWriteDateTime

Write the Time on the plc

pubmethodWriteSavePath

This method sets the SavePath property of the cpu.

Public Instance Events

pubeventActiveCpuChanged

Occurs when the active CPU has change in an redundancy system.

pubeventApplicationInfoRead

Occurs when the application info has been read.

pubeventApplicationSynchronizeStarted

Occurs when the PLC has accepted the start of the application synchronizeation. The progress will be reported by ApplicationSyncing.

pubeventApplicationSyncing

Occurs when the active CPU has change in an redundancy system. either app sync (Cmd="2") or active cpu switched (Cmd="1") or (CMD="16") for RedInfo changed events

pubeventBondInfoChanged

Occurs when the bond interface changes.

pubeventCpuInfoUpdated

Occurs when this instance CPU info has been updated.

pubeventDateTimeRead

Occurs when the cputime is read.

pubeventDateTimeWritten

Occurs when the cputime is written.

pubeventHardwareInfoRead

Occurs when the hardware info has been read.

pubeventLicenseChanged

Occurs when the license changes (e.g.: some on connects or disconnects a dongle).

pubeventLicenseStatusGot

Occurs when the cpu requests to the license state.

pubeventMemoryCleared

Occurs when the cpu requests to clear a memory type.

pubeventMemoryInfoRead

Occurs when the memory info has been read.

pubeventModuleDeleted

Occurs when a module has been deleted by the CPU.

pubeventRedundancyInfoChanged

Occurs when the redundancy info has been read.

pubeventRedundancyInfoRead

Occurs when the redundancy info has been read.

pubeventRestarted

Occurs when the cpu is restarted.

pubeventSavePathRead

Occurs when SavePath is read.

pubeventSavePathWritten

Occurs when SavePath is written.

pubeventTCPDestinationSettingsRead

Occurs when the TCP settigs have been read.

pubeventTOCRead

Event will be fired after the TOC has been read from the PLC.

See Also

Cpu Class | BR.AN.PviServices Namespace


Generated from assembly BR.AN.PviServices [8.1.0.4]