19.2.11 Example Program "Test.pro - WAGO -I/O-IPC-C6 Manual

Wago-i/o-system 750
Hide thumbs Also See for WAGO-I/O-IPC-C6:
Table of Contents

Advertisement

286
Appendix

19.2.11 Example Program "Test.pro"

The "Test.pro" example program illustrates registration, querying, and setting
customer-specific OIDs:
Program variables
PROGRAM PLC_PRG
VAR
(* Flags *)
bRegisterOID_INT32:BOOL := FALSE;
bRegisterOID_STRING:BOOL := FALSE;
bRegisterOID_UINT32:BOOL := FALSE;
bSetValueOID_INT32:BOOL := FALSE;
bSetValueOID_STRING:BOOL := FALSE;
bSetValueOID_UINT32:BOOL := FALSE;
bGetValueOID_INT32:BOOL := FALSE;
bGetValueOID_STRING:BOOL := FALSE;
bGetValueOID_UINT32:BOOL := FALSE;
(*CustomOIDs *)
sCustomOID1:STRING(128) := '.1.3.6.1.4.1.8072.2.4.1.1.1.0'; (* Integer32 *)
sCustomOID2:STRING(128) := '.1.3.6.1.4.1.8072.2.4.1.1.2.0'; (* OctetString *)
sCustomOID3:STRING(128) := '.1.3.6.1.4.1.8072.2.4.1.1.3.0'; (* UInteger32 *)
(* Values *)
iValue:DINT := 11;
sValue:STRING(255) := 'test';
uiValue:UDINT := 33;
(* Error *)
wError:WORD := 0;
END_VAR
WAGO-I/O-SYSTEM 750
758-874/000-131 WAGO-I/O-IPC-C6
Manual
Version 1.0.0

Advertisement

Table of Contents
loading

This manual is also suitable for:

I/o-system 750758-874/000-111

Table of Contents