huohuoh
Dependencies: NetServices mbed C027_Supports mbed-rpcx
modeldata.h@0:64967b7043c2, 2019-08-06 (annotated)
- Committer:
- irsanjul
- Date:
- Tue Aug 06 12:59:05 2019 +0000
- Revision:
- 0:64967b7043c2
testes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
irsanjul | 0:64967b7043c2 | 1 | #ifndef MODELDATA_H |
irsanjul | 0:64967b7043c2 | 2 | #define MODELDATA_H |
irsanjul | 0:64967b7043c2 | 3 | |
irsanjul | 0:64967b7043c2 | 4 | //------------------------------------------------------------------------------ |
irsanjul | 0:64967b7043c2 | 5 | // Model Data |
irsanjul | 0:64967b7043c2 | 6 | //------------------------------------------------------------------------------ |
irsanjul | 0:64967b7043c2 | 7 | // Alur Step |
irsanjul | 0:64967b7043c2 | 8 | // order state => interlock => meterstate => meter_info |
irsanjul | 0:64967b7043c2 | 9 | // **************************************************** |
irsanjul | 0:64967b7043c2 | 10 | // Order State |
irsanjul | 0:64967b7043c2 | 11 | // - 0 saat "No Order Present" |
irsanjul | 0:64967b7043c2 | 12 | // - 4 saat Order di proses |
irsanjul | 0:64967b7043c2 | 13 | // **************************************************** |
irsanjul | 0:64967b7043c2 | 14 | // interlock |
irsanjul | 0:64967b7043c2 | 15 | // - dapet langsung kirim |
irsanjul | 0:64967b7043c2 | 16 | // **************************************************** |
irsanjul | 0:64967b7043c2 | 17 | // meter state |
irsanjul | 0:64967b7043c2 | 18 | // - ambil state untuk nentuin step |
irsanjul | 0:64967b7043c2 | 19 | // - pas sampe 4 baru lanjut |
irsanjul | 0:64967b7043c2 | 20 | // **************************************************** |
irsanjul | 0:64967b7043c2 | 21 | // meter info |
irsanjul | 0:64967b7043c2 | 22 | // - langsung kirim |
irsanjul | 0:64967b7043c2 | 23 | //------------------------------------------------------------------------------ |
irsanjul | 0:64967b7043c2 | 24 | string MeterStateTelegram = "ENQ,FTL,OPERATION,Meter_State"; |
irsanjul | 0:64967b7043c2 | 25 | string OrderStateTelegram = "ENQ,FTL,ORDER,State"; |
irsanjul | 0:64967b7043c2 | 26 | string InterlockTelegram = "ENQ,FTL,OPERATION,Interlock"; |
irsanjul | 0:64967b7043c2 | 27 | string MeterInfoTelegram = "ENQ,FTL,OPERATION,Meter_Info"; |
irsanjul | 0:64967b7043c2 | 28 | string LFileTelegram = "ENQ,FTL,LOG,L_File"; |
irsanjul | 0:64967b7043c2 | 29 | string AckTelegram = "A"; |
irsanjul | 0:64967b7043c2 | 30 | string ErrorTelegram = "ENQ,HAAR,Warnings"; |
irsanjul | 0:64967b7043c2 | 31 | |
irsanjul | 0:64967b7043c2 | 32 | string TelegramState[7] = { OrderStateTelegram, InterlockTelegram, |
irsanjul | 0:64967b7043c2 | 33 | MeterStateTelegram, MeterInfoTelegram, |
irsanjul | 0:64967b7043c2 | 34 | LFileTelegram, AckTelegram, ErrorTelegram}; |
irsanjul | 0:64967b7043c2 | 35 | |
irsanjul | 0:64967b7043c2 | 36 | #endif |