System_shutdown block

Short summary

Name

System_shutdown

→POU type

→function

Category

more system blocks, blocks for calling system functions

Graphical interface

images/download/thumbnails/414780341/System_shutdown-version-1-modificationdate-1534499571210-api-v2.png

Available since

  • version 1.88.0 (for logi.CAD 3) and version 3.6.2 of the →runtime system

    images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/warning.svg This block is supported for →Raspberry Pi only.

  • version 1.109.0 (for logi.CAD 3) and version 3.19.0 of the →runtime system
    images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/warning.svg This block is supported for Raspberry Pi and when using the platform LinuxX86 only.

Functionality

The block performs a shutdown of the PLC.

Inputs, outputs, return value


Identifier

→Data type

Description

Inputs:

mode

USINT

shutdown mode

  • value 1 : performs a reboot

  • value 2 : powers down (default)

Outputs:

rc

DINT

return code of system call

Return value:

UDINT

returns the return code of the RTS system service
Value 0 represents the successful execution of the block.

Input EN and output ENO are available when →calling the block. See "Execution control: EN, ENO" for information on input EN and output ENO.

Example for usage within ST-editor

At present, there is no example.

When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.