IEC 61131-3 C Tools User Manual


Add to my manuals
501 Pages

advertisement

IEC 61131-3 C Tools User Manual | Manualzz

IEC 61131-3 C Tools Function Specifications

getBootType

Get Controller Boot Up State

Syntax

#include <ctools.h> unsigned getBootType(void);

Description

The getBootType function returns the boot up state of the controller. The possible return values are:

SERVICE

RUN controller started in SERVICE mode controller started in RUN mode

Example

}

#include <ctools.h> void main(void)

{ struct prot_settings settings;

/* Disable the protocol on serial port 1 */ settings.type = NO_PROTOCOL; settings.station = 1; settings.priority = 3; settings.SFMessaging = FALSE; request_resource(IO_SYSTEM); set_protocol(com1, &settings); release_resource(IO_SYSTEM);

/* Display the boot status information */ printf("Boot type: %d\r\n", getBootType());

Document (Version 2.50) 5/12/2011 193 193

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

advertisement

Table of contents