FP_SYSTEM_MONITOR_READ

Reads the system monitor area of the FP7

This FP instruction reads specific areas of the FP7 system monitor and writes the value into a DUT.

Parameters

Output

d_dutSystemMonitor (ANY_DUT)

Use the following predefined DUT:

  • FP_SYSTEM_MONITOR_COMMUNICATION_CYCLE_DUT

  • FP_SYSTEM_MONITOR_COM_CPU_ERROR_DUT

  • FP_SYSTEM_MONITOR_CPU_ERROR_DUT

  • FP_SYSTEM_MONITOR_CURRENT_DUT

  • FP_SYSTEM_MONITOR_ETHERNET_DUT

  • FP_SYSTEM_MONITOR_INTERRUPT_UNITS_DUT

  • FP_SYSTEM_MONITOR_LOGGING_TRACE_DUT

  • FP_SYSTEM_MONITOR_OPERATION_ERROR_DUT

  • FP_SYSTEM_MONITOR_POWER_SUPPLY_DUT

  • FP_SYSTEM_MONITOR_SD_CARD_DUT

  • FP_SYSTEM_MONITOR_SYNTAX_ERROR_DUT

  • FP_SYSTEM_MONITOR_TEMPERATURE_DUT

  • FP_SYSTEM_MONITOR_UNIT_ALARM_DUT

  • FP_SYSTEM_MONITOR_UNIT_ERROR_DUT

  • FP_SYSTEM_MONITOR_UNIT_WARNING_DUT

  • FP_SYSTEM_MONITOR_USE_HISTORY_DUT

  • FP_SYSTEM_MONITOR_VERIFY_ERROR_DUT

  • FP_SYSTEM_MONITOR_VOLTAGE_DUT

Example

POU header

All input and output variables used for programming this function have been declared in the POU header.The same POU header is used for all programming languages.

VAR
dutSystemMonitorSdCard: FP_SYSTEM_MONITOR_SD_CARD_DUT;
bRead: BOOL:=FALSE;
END_VAR

POU body

When the variable bRead is set to TRUE, the function is carried out.

LD body

BODY
    WORKSPACE
        NETWORK_LIST_TYPE := NWTYPELD ;
        ACTIVE_NETWORK := 0 ;
    END_WORKSPACE
    NET_WORK
        NETWORK_TYPE := NWTYPELD ;
        NETWORK_LABEL :=  ;
        NETWORK_TITLE :=  ;
        NETWORK_HEIGHT := 4 ;
        NETWORK_BODY
B(B_CONTACT,,bRead,5,1,7,3,);
B(B_F,FP_SYSTEM_MONITOR_READ!,,11,0,25,4,,?DEN?AENO?Cd_dutSystemMonitor);
B(B_VAROUT,,dutSystemMonitorSdCard,25,2,27,4,);
L(7,2,11,2);
L(1,2,5,2);
L(1,0,1,4);
        END_NETWORK_BODY
    END_NET_WORK
END_BODY

ST body

If (bRead) Then
    FP_SYSTEM_MONITOR_READ(d_dutSystemMonitor => dutSystemMonitorSdCard);
End_if;

Modified on: 2019-06-03Feedback on this pagePanasonic hotline