
Side-Connect API Library Functions MVI-ADM ♦ 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module
Page 320 of 342 ProSoft Technology, Inc.
February 20, 2013
11.8 Side-connect API PLC Status and Control Functions
MVIsc_GetPLCStatus
Syntax
int MVIsc_GetPLCStatus(HANDLE handle, WORD *status, WORD *majfault);
Parameters
Handle returned by previous call to MVIsc_Open
Pointer to variable to receive PLC-5 status word
Pointer to variable to receive PLC-5 major fault word
Description
This function is used by an application to retrieve the PLC-5 status and major
fault words.
handle must be a valid handle returned from MVIsc_Open. Table 3 and Table 4
below define the bits of the status and major fault words, respectively. For
programming convenience and clarity, a definition is provided for each bit in the
API include file MVISCAPI.H.
PLC-5 Status Word
User program checksum done
Last scan of ladder/SFC step
First scan of ladder/SFC step
PLC-5 Major Fault Word
MVISC_PLCFLT_PROG_MEM_BAD
MVISC_PLCFLT_BAD_OPRN_ADDR
Kommentare zu diesen Handbüchern