CM579PnioGetDevState (FB)
FUNCTION_BLOCK CM579PnioGetDevState EXTENDS CM579PnioBase
funktion block to read the current state of specified PROFINET IO Device
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
ExecuteBOOLFALSE
A rising edge starts the operation, the output Busy goes to TRUE. In the first cycle all other inputs are read and stored, afterwards they are ignored. A falling edge does not stop the operation. After Done = TRUE or Error = TRUE and Execute = FALSE all outputs will be reset.
AbbETrig2
Output
DoneBOOLFALSE
Operation is completed without error (while outputs Busy and Error are FALSE). This output is TRUE for at least one cycle or until Execute is set to FALSE
AbbETrig2
BusyBOOLFALSE
Operation is running (while outputs Done and Error are FALSE)
AbbETrig2
ErrorBOOLFALSE
Operation is stopped with error (while outputs Busy and Done are FALSE). This output is TRUE for at least one cycle or until Execute is set to FALSE. The output ErrorID gives more details about the error.
AbbETrig2
Input
DeviceAC500_IoDrvCM579Profinet.IDeviceCM579Profinetinstance of CM579-PNIO device
CM579PnioBase
Output
ErrorIDerror code that describes occurred error
CM579PnioBase
AddErrorIDUDINTadditional description of error, meaning depends on value of output ErrorID
CM579PnioBase
Input
DevNamename of device (e.g. ‘ci501-pn-01’ )
Output
MacAddrARRAY [1..6] OF BYTE
MAC address of device
IpAddrUDINTIP address of device
VendorIDUINTVendor ID of device
DeviceIDUINTDevice ID of device
ActiveBOOLstate of connection between controller and device
DiagFlagsDWORDdiagnosis flags, see CM579PNIO_DEVICE_DIAGFLAGS_… in CM579PnioConst
Properties:
Job
Methods:
CheckInputs
PrepareJob
SetOutputs
Structure: