Library manual M238 system functions | 2 MB - BERGER - POSITEC
Library manual M238 system functions | 2 MB - BERGER - POSITEC
Library manual M238 system functions | 2 MB - BERGER - POSITEC
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Table of Contents<br />
Safety Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5<br />
About the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7<br />
Chapter 1 <strong>M238</strong> System Variables . . . . . . . . . . . . . . . . . . . . . . . . . . 9<br />
1.1 System Variables: Definition and Use. . . . . . . . . . . . . . . . . . . . . . . . . . . . 10<br />
Understanding System Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11<br />
Using System Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13<br />
1.2 PLC_R and PLC_W Structures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15<br />
PLC_R: Controller Read Only System Variables . . . . . . . . . . . . . . . . . . . 16<br />
PLC_W: Controller Read / Write System Variables . . . . . . . . . . . . . . . . . 18<br />
1.3 SERIAL_R and SERIAL_W Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . 19<br />
SERIAL_R[0..1]: Serial Line Read Only System Variables. . . . . . . . . . . . 20<br />
SERIAL_W[0..1]: Serial Line Read / Write System Variables . . . . . . . . . . 21<br />
Chapter 2 <strong>M238</strong> System Functions. . . . . . . . . . . . . . . . . . . . . . . . . . 23<br />
2.1 <strong>M238</strong> Read Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24<br />
GetBatteryLevel: Returns Remaining Power Charge of the Battery . . . . . 25<br />
GetBootProjectStatus: Returns the Boot Project Status . . . . . . . . . . . . . . 26<br />
GetEventsNumber: Returns the Number of External Events Detected. . . 27<br />
GetFirmwareVersion: Returns Information About the Firmware, the Boot<br />
and the Coprocessor Versions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28<br />
GetHardwareVersion: Returns the Hardware Version . . . . . . . . . . . . . . . 30<br />
GetLastStopCause: Returns the Cause Last Stop . . . . . . . . . . . . . . . . . . 31<br />
GetLastStopTime: Returns the Date and Time of the Last Detected Stop 32<br />
GetLocalIOStatus: Returns the Embedded I/O Status . . . . . . . . . . . . . . . 33<br />
GetPlcFault: Returns Detected Errors on the Controller I/O . . . . . . . . . . . 35<br />
GetRightBusStatus: Returns the Status of the Expansion Bus. . . . . . . . . 36<br />
GetSerialNumber: Returns the Serial Number of the Controller . . . . . . . . 40<br />
GetShortCutStatus: Returns the Short-Circuit Status on Embedded<br />
Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41<br />
IsFirstMastColdCycle: Indicates if Cycle is the First MAST Cold Start<br />
Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42<br />
IsFirstMastCycle: Indicates if Cycle is the First MAST Cycle . . . . . . . . . . 43<br />
IsFirstMastWarmCycle: Indicates if Cycle is the First MAST Warm Start<br />
Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45<br />
EIO0000000364 04/2012 3