AsSafety.typ 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569
  1. TYPE
  2. FileReferenceType : STRUCT (*file reference*)
  3. Device : STRING[80]; (*pointer to the device name*)
  4. File : STRING[80]; (*pointer to the file name*)
  5. END_STRUCT;
  6. AsSafetyInternalType : STRUCT (*internal data type*)
  7. Clean : BOOL;
  8. State : UINT;
  9. Result : UINT;
  10. Tmp : UDINT;
  11. pThis : UDINT;
  12. pFcn : UDINT;
  13. END_STRUCT;
  14. SourceLocalDataTypeV1 : STRUCT (*local data source type*)
  15. pFileData : UDINT; (*pointer to data buffer*)
  16. FileLength : UDINT; (*data length*)
  17. END_STRUCT;
  18. SourceLocalFileTypeV1 : STRUCT (*local file source*)
  19. SourceFile : FileReferenceType; (*path to local file*)
  20. END_STRUCT;
  21. DataSourceTypeV1 : STRUCT (*source data type*)
  22. Type : UINT; (*0 .. file upload from safeLOGIC, 1 .. local data buffer, 2 .. local file*)
  23. LocalData : SourceLocalDataTypeV1; (*arguments for local data*)
  24. LocalFile : SourceLocalFileTypeV1; (*arguments for local file*)
  25. END_STRUCT;
  26. InfoCmdPwdInfoTypeV1 : STRUCT (*password info data from SafeLOGIC command structure*)
  27. Version : UINT; (*used version*)
  28. PasswordSet : BOOL; (*0 .. no password set, 1 .. password is set*)
  29. END_STRUCT;
  30. InfoCmdPwdChkTypeV1 : STRUCT (*password check data from SafeLOGIC command structure*)
  31. Version : UINT; (*used version*)
  32. Password : STRING[16]; (*password for check*)
  33. PasswordEqual : BOOL; (*0 .. no password set, 1 .. password is set*)
  34. END_STRUCT;
  35. ConfigurationAddParaTypeV2 : STRUCT (*additional parameter data from SafeLOGIC*)
  36. SADR : UINT; (*safety address*)
  37. ID : USINT; (*id*)
  38. pParaData : UDINT; (*pointer to additional parameter data*)
  39. Length : UDINT; (*size of parameter buffer*)
  40. LengthOut : UDINT; (*length of parameter*)
  41. CRC : UDINT; (*CRC*)
  42. Timestamp : UDINT; (*timestamp*)
  43. END_STRUCT;
  44. ConfigurationAddParaTypeV1 : STRUCT (*additional parameter data from SafeLOGIC*)
  45. SADR : UINT; (*safety address*)
  46. ID : USINT; (*id*)
  47. pParaData : UDINT; (*pointer to additional parameter data*)
  48. Length : UDINT; (*size of parameter buffer*)
  49. CRC : UDINT; (*CRC*)
  50. Timestamp : UDINT; (*timestamp*)
  51. END_STRUCT;
  52. ConfigurationBitOptionsTypeV1 : STRUCT (*bit machine options*)
  53. BitData : ARRAY[0..63]OF USINT; (*bit array*)
  54. END_STRUCT;
  55. ConfigurationCmdAddParaTypeV2 : STRUCT (*additional parameter data from SafeLOGIC command structure*)
  56. Version : UINT; (*input data: used version*)
  57. Password : STRING[16]; (*input data: password*)
  58. pParaDataOutput : UDINT; (*input data: pointer to list of type ConfigurationAddParaTypeV2*)
  59. NumberParaSetsOutput : UINT; (*input data: number of available entries in pParaDataOutput*)
  60. NumberParaSetsOutputOut : UINT; (*return value: number of returned entries*)
  61. pBackupFile : UDINT; (*input data: 0 .. no backup, otherwise pointer to struct of type FileReferenceType *)
  62. pXmlOutputFile : UDINT; (*input data: 0 .. don't create XML output data, otherwise pointer to struct of type FileReferenceType*)
  63. END_STRUCT;
  64. ConfigurationCmdAddParaTypeV1 : STRUCT (*additional parameter data from SafeLOGIC command structure*)
  65. Version : UINT; (*input data: used version*)
  66. Password : STRING[16]; (*input data: password*)
  67. pParaDataOutput : UDINT; (*return value: pointer to list of type ConfigurationAddParaTypeV1*)
  68. NumberParaSetsOutput : UINT; (*return value: number of returned entries*)
  69. END_STRUCT;
  70. ConfigurationCmdExtMaOpTypeV2 : STRUCT (*extended machine options from SafeLOGIC command structure*)
  71. Version : UINT; (*input data: safeVERSION_R110*)
  72. Password : STRING[16]; (*input data: password*)
  73. pIntDataOutput : UDINT; (*input data: pointer to list of type ConfigurationIntOptionsTypeV1*)
  74. NumberIntOutput : UINT; (*input data: number of available entries in INT buffer*)
  75. NumberIntOutputOut : UINT; (*return value: number of returned INT data entries*)
  76. pUintDataOutput : UDINT; (*input data: pointer to list of type ConfigurationUintOptionsTypeV1*)
  77. NumberUintOutput : UINT; (*input data: number of available entries in UINT buffer*)
  78. NumberUintOutputOut : UINT; (*return value: number of returned UINT data entries*)
  79. pDintDataOutput : UDINT; (*input data: pointer to list of type ConfigurationDintOptionsTypeV1*)
  80. NumberDintOutput : UINT; (*input data: number of available DINT data entries*)
  81. NumberDintOutputOut : UINT; (*return value: number of returned DINT data entries*)
  82. pUdintDataOutput : UDINT; (*input data: pointer to list of type ConfigurationUdintOptionsTypeV1*)
  83. NumberUdintOutput : UINT; (*input data: number of available UDINT data entries*)
  84. NumberUdintOutputOut : UINT; (*return value: number of returned UDINT data entries*)
  85. pBackupFile : UDINT; (*input data: 0 .. no backup, otherwise pointer to struct of type FileReferenceType *)
  86. pXmlOutputFile : UDINT; (*input data: 0 .. don't create XML output data, otherwise pointer to struct of type FileReferenceType*)
  87. END_STRUCT;
  88. ConfigurationCmdExtMaOpTypeV1 : STRUCT (*extended machine options from SafeLOGIC command structure*)
  89. Version : UINT; (*input data: safeVERSION_R107*)
  90. Password : STRING[16]; (*input data: password*)
  91. pIntDataOutput : UDINT; (*return value: pointer to list of type ConfigurationIntOptionsTypeV1*)
  92. NumberIntOutput : UINT; (*return value: number of returned INT data entries*)
  93. pUintDataOutput : UDINT; (*return value: pointer to list of type ConfigurationUintOptionsTypeV1*)
  94. NumberUintOutput : UINT; (*return value: number of returned UINT data entries*)
  95. pDintDataOutput : UDINT; (*return value: pointer to list of type ConfigurationDintOptionsTypeV1*)
  96. NumberDintOutput : UINT; (*return value: number of returned DINT data entries*)
  97. pUdintDataOutput : UDINT; (*return value: pointer to list of type ConfigurationUdintOptionsTypeV1*)
  98. NumberUdintOutput : UINT; (*return value: number of returned UDINT data entries*)
  99. END_STRUCT;
  100. ConfigurationCmdMaOpTypeV2 : STRUCT (*machine options from SafeLOGIC command structure Version 2*)
  101. Version : UINT; (*input data: safeVERSION_R110*)
  102. Password : STRING[16]; (*input data: password*)
  103. pDeviceListOutput : UDINT; (*input data: pointer to device list buffer of type ConfigurationDeviceTypeV1*)
  104. NumberDevicesOutput : UINT; (*input data: number of available device entries in devices list buffer*)
  105. NumberDevicesOutputOut : UINT; (*return value: number of returned device entries*)
  106. pMachineOptionsOutput : UDINT; (*input data: pointer to bit machine options of type ConfigurationBitOptionsTypeV1*)
  107. pModuleFlagsOutput : UDINT; (*input data: pointer to module flags of type ConfigurationModuleFlagsTypeV1*)
  108. pBackupFile : UDINT; (*input data: 0 .. no backup, otherwise pointer to struct of type FileReferenceType *)
  109. pXmlOutputFile : UDINT; (*input data: 0 .. don't create XML output data, otherwise pointer to struct of type FileReferenceType*)
  110. END_STRUCT;
  111. ConfigurationCmdMaOpTypeV1 : STRUCT (*machine options from SafeLOGIC command structure Version 1*)
  112. Version : UINT; (*input data: safeVERSION_R107*)
  113. Password : STRING[16]; (*input data: password*)
  114. pDeviceListOutput : UDINT; (*return value: pointer to device list of type ConfigurationDeviceTypeV1*)
  115. NumberDevicesOutput : UINT; (*return value: number of returned entries*)
  116. pMachineOptionsOutput : UDINT; (*return value: pointer to bit machine options of type ConfigurationBitOptionsTypeV1*)
  117. pModuleFlagsOutput : UDINT; (*return value: pointer to module flags of type ConfigurationModuleFlagsTypeV1*)
  118. END_STRUCT;
  119. ConfigurationCmdTableTypeV2 : STRUCT (*table data from SafeLOGIC command structure*)
  120. Version : UINT; (*input data: safeVERSION_R110*)
  121. Password : STRING[16]; (*input data: password*)
  122. pTableDataOutput : UDINT; (*input data: pointer to list of type ConfigurationTableTypeV1*)
  123. NumberTablesOutput : UINT; (*input data: number of available entries in pTableDataOutput*)
  124. NumberTablesOutputOut : UINT; (*return value: number of returned table entries*)
  125. pBackupFile : UDINT; (*input data: 0 .. no backup, otherwise pointer to struct of type FileReferenceType *)
  126. pXmlOutputFile : UDINT; (*input data: 0 .. don't create XML output data, otherwise pointer to struct of type FileReferenceType*)
  127. END_STRUCT;
  128. ConfigurationCmdTableTypeV1 : STRUCT (*table data from SafeLOGIC command structure*)
  129. Version : UINT; (*input data: safeVERSION_R107*)
  130. Password : STRING[16]; (*input data: password*)
  131. pTableDataOutput : UDINT; (*return value: pointer to list of type ConfigurationTableTypeV1*)
  132. NumberTablesOutput : UINT; (*return value: number of returned table entries*)
  133. END_STRUCT;
  134. FileInfoCmdTypeV1 : STRUCT (*file info command structure*)
  135. Version : UINT; (*used version*)
  136. DataSource : DataSourceTypeV1; (*data source*)
  137. Timestamp : UDINT; (*timestamp*)
  138. pCrcs : UDINT; (*buffer for CRCs*)
  139. NumberOfCrcs : UINT; (*size of CRC buffer*)
  140. NumberOfCrcsOut : UINT; (*number of CRCs*)
  141. END_STRUCT;
  142. ConfigurationDeviceTypeV1 : STRUCT (*safety device from SafeLOGIC*)
  143. SADR : UINT; (*safety address*)
  144. UDID : ARRAY[0..5]OF USINT; (*UDID*)
  145. END_STRUCT;
  146. ConfigurationDintOptionsTypeV1 : STRUCT (*DINT machine options*)
  147. ID : UINT; (*id*)
  148. Value : DINT; (*value*)
  149. END_STRUCT;
  150. ConfigurationIntOptionsTypeV1 : STRUCT (*INT machine options*)
  151. ID : UINT; (*id*)
  152. Value : INT; (*value*)
  153. END_STRUCT;
  154. ConfigurationModuleFlagsTypeV1 : STRUCT (*module flags*)
  155. Optional : ARRAY[0..127]OF USINT; (*optional*)
  156. Startup : ARRAY[0..127]OF USINT; (*startup*)
  157. NotPresent : ARRAY[0..127]OF USINT; (*not present*)
  158. END_STRUCT;
  159. ConfigurationTableTypeV2 : STRUCT (*table data for command struct V1*)
  160. ID : UINT; (*table id*)
  161. Type : USINT; (*table type*)
  162. NumberOfCRCs : UINT; (*input data: number of available entries in pCRCData*)
  163. NumberOfCRCsOut : UINT; (*return value: number of returned CRC entries*)
  164. pCRCData : UDINT; (*input data: pointer to table CRC buffer*)
  165. END_STRUCT;
  166. ConfigurationTableTypeV1 : STRUCT (*table data for command struct V2*)
  167. ID : UINT; (*table id*)
  168. Type : USINT; (*table type*)
  169. NumberOfCRCs : UINT; (*return value: number of returned CRCs*)
  170. pCRCData : UDINT; (*return value: pointer to table CRC buffer*)
  171. END_STRUCT;
  172. ConfigurationUdintOptionsTypeV1 : STRUCT (*UDINT machine options*)
  173. ID : UINT; (*id*)
  174. Value : UDINT; (*value*)
  175. END_STRUCT;
  176. ConfigurationUintOptionsTypeV1 : STRUCT (*UINT machine options*)
  177. ID : UINT; (*id*)
  178. Value : UINT; (*value*)
  179. END_STRUCT;
  180. DownloadAcknExtMaOpTypeV1 : STRUCT (*acknowledge extended machine options structure*)
  181. AcknIntOptions : ARRAY[0..63]OF BOOL; (*acknowledge INT*)
  182. AcknUintOptions : ARRAY[0..63]OF BOOL; (*acknowledge UINT*)
  183. AcknDintOptions : ARRAY[0..63]OF BOOL; (*acknowledge DINT*)
  184. AcknUdintOptions : ARRAY[0..63]OF BOOL; (*acknowledge UDINT*)
  185. END_STRUCT;
  186. DownloadAcknMaOpTypeV1 : STRUCT (*acknowledge bit machine options structure*)
  187. AcknBitOptions : ARRAY[0..63]OF USINT; (*acknowledge bit*)
  188. END_STRUCT;
  189. DownloadAcknAddParaTypeV1 : STRUCT (*acknowledge bit additional parameter*)
  190. AcknBitAddPara : ARRAY[0..63]OF USINT; (*acknowledge bit*)
  191. END_STRUCT;
  192. DownloadCmdAddParaTypeV2 : STRUCT (*additional paramater command structure*)
  193. Version : UINT; (*input data: used version*)
  194. Password : STRING[16]; (*input data: password*)
  195. UDID_Low : UDINT; (*input data: UDID low*)
  196. UDID_High : UINT; (*input data: UDID high*)
  197. Unlock : USINT; (*input data: unlock data*)
  198. pParaListInput : UDINT; (*input data: pointer to additional parameter input data list of type DownloadAddParaTypeV1*)
  199. NumberParaSetsInput : UINT; (*input data: number of input parameter entries in pParaListInput*)
  200. pParaDataOutput : UDINT; (*input data: pointer to list of type ConfigurationAddParaTypeV2*)
  201. NumberParaSetsOutput : UINT; (*input data: number of available entries in pParaDataOutput*)
  202. NumberParaSetsOutputOut : UINT; (*return value: number of returned entries*)
  203. pBackupFile : UDINT; (*input data: 0 .. no backup, otherwise pointer to struct of type FileReferenceType *)
  204. pXmlOutputFile : UDINT; (*input data: 0 .. don't create XML output data, otherwise pointer to struct of type FileReferenceType*)
  205. END_STRUCT;
  206. DownloadCmdAddParaTypeV1 : STRUCT (*additional paramater command structure*)
  207. Version : UINT; (*input data: used version*)
  208. Password : STRING[16]; (*input data: password*)
  209. UDID_Low : UDINT; (*input data: UDID low*)
  210. UDID_High : UINT; (*input data: UDID high*)
  211. Unlock : USINT; (*input data: unlock data*)
  212. pParaListInput : UDINT; (*input data: pointer to additional parameter input data list of type DownloadAddParaTypeV1*)
  213. NumberParaSetsInput : UINT; (*input data: number of input parameter entries in pParaListInput*)
  214. pParaDataOutput : UDINT; (*return value: pointer to list of type ConfigurationAddParaTypeV1*)
  215. NumberParaSetsOutput : UINT; (*return value: number of returned entries*)
  216. END_STRUCT;
  217. DownloadCmdApplicationTypeV1 : STRUCT (*application command structure*)
  218. Version : UINT; (*used version*)
  219. Password : STRING[16]; (*password*)
  220. UDID_Low : UDINT; (*UDID low*)
  221. UDID_High : UINT; (*UDID high*)
  222. ApplicationID : UINT; (*application id*)
  223. Device : STRING[80]; (*device for file*)
  224. File : STRING[80]; (*file name*)
  225. Unlock : USINT; (*unlock application*)
  226. END_STRUCT;
  227. DownloadCmdExtMaOpTypeV2 : STRUCT (*extended machine options command structure*)
  228. Version : UINT; (*input data: safeVERSION_R110*)
  229. Password : STRING[16]; (*input data: password*)
  230. UDID_Low : UDINT; (*input data: UDID low*)
  231. UDID_High : UINT; (*input data: UDID high*)
  232. Unlock : USINT; (*input data: unlock data*)
  233. pIntDataInput : UDINT; (*input data: pointer to INT input data list from type ConfigurationIntOptionsTypeV1*)
  234. NumberIntInput : UINT; (*input data: number of INT input entries in pIntDataInput*)
  235. pUintDataInput : UDINT; (*input data: pointer to UINT input data list from type ConfigurationUintOptionsTypeV1*)
  236. NumberUintInput : UINT; (*input data: number of UINT input entries in pUintDataInput*)
  237. pDintDataInput : UDINT; (*input data: pointer to DINT input data list from type ConfigurationDintOptionsTypeV1*)
  238. NumberDintInput : UINT; (*input data: number of DINT input entries in pDintDataInput*)
  239. pUdintDataInput : UDINT; (*input data: pointer to UDINT input data list from type ConfigurationUdintOptionsTypeV1*)
  240. NumberUdintInput : UINT; (*input data: number of UDINT input entries in pUdintDataInput*)
  241. pAcknMachineOptions : UDINT; (*input data: pointer to acknowledge information of type DownloadAcknMaOpTypeV1*)
  242. pIntDataOutput : UDINT; (*input data: pointer to list of type ConfigurationIntOptionsTypeV1*)
  243. NumberIntOutput : UINT; (*input data: number of available entries in INT buffer*)
  244. NumberIntOutputOut : UINT; (*return value: number of returned INT data entries*)
  245. pUintDataOutput : UDINT; (*input data: pointer to list of type ConfigurationUintOptionsTypeV1*)
  246. NumberUintOutput : UINT; (*input data: number of available entries in UINT buffer*)
  247. NumberUintOutputOut : UINT; (*return value: number of returned UINT data entries*)
  248. pDintDataOutput : UDINT; (*input data: pointer to list of type ConfigurationDintOptionsTypeV1*)
  249. NumberDintOutput : UINT; (*input data: number of available DINT data entries*)
  250. NumberDintOutputOut : UINT; (*return value: number of returned DINT data entries*)
  251. pUdintDataOutput : UDINT; (*input data: pointer to list of type ConfigurationUdintOptionsTypeV1*)
  252. NumberUdintOutput : UINT; (*input data: number of available UDINT data entries*)
  253. NumberUdintOutputOut : UINT; (*number of UDINT channels from SafeLOGIC*)
  254. pBackupFile : UDINT; (*input data: 0 .. no backup, otherwise pointer to struct of type FileReferenceType *)
  255. pXmlOutputFile : UDINT; (*input data: 0 .. don't create XML output data, otherwise pointer to struct of type FileReferenceType*)
  256. END_STRUCT;
  257. DownloadCmdExtMaOpTypeV1 : STRUCT (*return value: number of returned UDINT data entries*)
  258. Version : UINT; (*input data: safeVERSION_R107*)
  259. Password : STRING[16]; (*input data: password*)
  260. UDID_Low : UDINT; (*input data: UDID low*)
  261. UDID_High : UINT; (*input data: UDID high*)
  262. Unlock : USINT; (*input data: unlock data*)
  263. pIntDataInput : UDINT; (*input data: pointer to INT input data list from type ConfigurationIntOptionsTypeV1*)
  264. NumberIntInput : UINT; (*input data: number of INT input entries in pIntDataInput*)
  265. pUintDataInput : UDINT; (*input data: pointer to UINT input data list from type ConfigurationUintOptionsTypeV1*)
  266. NumberUintInput : UINT; (*input data: number of UINT input entries in pUintDataInput*)
  267. pDintDataInput : UDINT; (*input data: pointer to DINT input data list from type ConfigurationDintOptionsTypeV1*)
  268. NumberDintInput : UINT; (*input data: number of DINT input entries in pDintDataInput*)
  269. pUdintDataInput : UDINT; (*input data: pointer to UDINT input data list from type ConfigurationUdintOptionsTypeV1*)
  270. NumberUdintInput : UINT; (*input data: number of UDINT input entries in pUdintDataInput*)
  271. pAcknMachineOptions : UDINT; (*input data: pointer to acknowledge information of type DownloadAcknMaOpTypeV1*)
  272. pIntDataOutput : UDINT; (*return value: pointer to list of type ConfigurationIntOptionsTypeV1*)
  273. NumberIntOutput : UINT; (*return value: number of returned INT data entries*)
  274. pUintDataOutput : UDINT; (*return value: pointer to list of type ConfigurationUintOptionsTypeV1*)
  275. NumberUintOutput : UINT; (*return value: number of returned UINT data entries*)
  276. pDintDataOutput : UDINT; (*return value: pointer to list of type ConfigurationDintOptionsTypeV1*)
  277. NumberDintOutput : UINT; (*return value: number of returned DINT data entries*)
  278. pUdintDataOutput : UDINT; (*return value: pointer to list of type ConfigurationUdintOptionsTypeV1*)
  279. NumberUdintOutput : UINT; (*return value: number of returned UDINT data entries*)
  280. END_STRUCT;
  281. DownloadCmdMaOpTypeV2 : STRUCT (*machine options command structure*)
  282. Version : UINT; (*input data: safeVERSION_R110*)
  283. Password : STRING[16]; (*input data: password*)
  284. UDID_Low : UDINT; (*input data: UDID low from SafeLOGIC*)
  285. UDID_High : UINT; (*input data: UDID high from SafeLOGIC*)
  286. Unlock : USINT; (*input data: unlock data*)
  287. pDeviceListInput : UDINT; (*input data: pointer to input device list of type DownloadDeviceTypeV1*)
  288. NumberDevicesInput : UINT; (*input data: number of input devices*)
  289. pMachineOptionsInput : UDINT; (*input data: pointer to input bit machine options of type ConfigurationBitOptionsTypeV1*)
  290. pModuleFlagsInput : UDINT; (*input data: pointer to input module flags of type ConfigurationModuleFlagsTypeV1*)
  291. pAcknMachineOptions : UDINT; (*input data: pointer to acknowledge information of type DownloadAcknMaOpTypeV1*)
  292. pDeviceListOutput : UDINT; (*input data: pointer to device list buffer of type ConfigurationDeviceTypeV1*)
  293. NumberDevicesOutput : UINT; (*input data: number of available device entries in devices list buffer*)
  294. NumberDevicesOutputOut : UINT; (*return value: number of returned device entries*)
  295. pMachineOptionsOutput : UDINT; (*input data: pointer to bit machine options of type ConfigurationBitOptionsTypeV1*)
  296. pModuleFlagsOutput : UDINT; (*input data: pointer to module flags of type ConfigurationModuleFlagsTypeV1*)
  297. pBackupFile : UDINT; (*input data: 0 .. no backup, otherwise pointer to struct of type FileReferenceType *)
  298. pXmlOutputFile : UDINT; (*input data: 0 .. don't create XML output data, otherwise pointer to struct of type FileReferenceType*)
  299. END_STRUCT;
  300. DownloadCmdMaOpTypeV1 : STRUCT (*machine options command structure*)
  301. Version : UINT; (*input data: safeVERSION_R107*)
  302. Password : STRING[16]; (*input data: password*)
  303. UDID_Low : UDINT; (*input data: UDID low from SafeLOGIC*)
  304. UDID_High : UINT; (*input data: UDID high from SafeLOGIC*)
  305. Unlock : USINT; (*input data: unlock data*)
  306. pDeviceListInput : UDINT; (*input data: pointer to input device list of type DownloadDeviceTypeV1*)
  307. NumberDevicesInput : UINT; (*input data: number of input devices*)
  308. pMachineOptionsInput : UDINT; (*input data: pointer to input bit machine options of type ConfigurationBitOptionsTypeV1*)
  309. pModuleFlagsInput : UDINT; (*input data: pointer to input module flags of type ConfigurationModuleFlagsTypeV1*)
  310. pAcknMachineOptions : UDINT; (*input data: pointer to acknowledge information of type DownloadAcknMaOpTypeV1*)
  311. pDeviceListOutput : UDINT; (*return value: pointer to device list of type ConfigurationDeviceTypeV1*)
  312. NumberDevicesOutput : UINT; (*return value: number of returned entries*)
  313. pMachineOptionsOutput : UDINT; (*return value: pointer to bit machine options of type ConfigurationBitOptionsTypeV1*)
  314. pModuleFlagsOutput : UDINT; (*return value: pointer to module flags of type ConfigurationModuleFlagsTypeV1*)
  315. END_STRUCT;
  316. DownloadCmdTableTypeV2 : STRUCT (*table command structure*)
  317. Version : UINT; (*input data: safeVERSION_R110*)
  318. Password : STRING[16]; (*input data: password*)
  319. UDID_Low : UDINT; (*input data: UDID low*)
  320. UDID_High : UINT; (*input data: UDID high*)
  321. Unlock : USINT; (*input data: unlock data*)
  322. pTableDataInput : UDINT; (*input data: pointer to input table data list of type DownloadTableTypeV2*)
  323. NumberTablesInput : UINT; (*input data: number of input entries in pTableDataInput*)
  324. pTableDataOutput : UDINT; (*input data: pointer to list of type ConfigurationTableTypeV1*)
  325. NumberTablesOutput : UINT; (*input data: number of available entries in pTableDataOutput*)
  326. NumberTablesOutputOut : UINT; (*return value: number of returned table entries*)
  327. pBackupFile : UDINT; (*input data: 0 .. no backup, otherwise pointer to struct of type FileReferenceType *)
  328. pXmlOutputFile : UDINT; (*input data: 0 .. don't create XML output data, otherwise pointer to struct of type FileReferenceType*)
  329. END_STRUCT;
  330. DownloadCmdTableTypeV1 : STRUCT (*table command structure*)
  331. Version : UINT; (*input data: safeVERSION_R107*)
  332. Password : STRING[16]; (*input data: password*)
  333. UDID_Low : UDINT; (*input data: UDID low*)
  334. UDID_High : UINT; (*input data: UDID high*)
  335. Unlock : USINT; (*input data: unlock data*)
  336. pTableDataInput : UDINT; (*input data: pointer to input table data list of type DownloadTableTypeV1*)
  337. NumberTablesInput : UINT; (*input data: number of input entries in pTableDataInput*)
  338. pTableDataOutput : UDINT; (*return value: pointer to list of type ConfigurationTableTypeV1*)
  339. NumberTablesOutput : UINT; (*return value: number of returned table entries*)
  340. END_STRUCT;
  341. DownloadCmdFileTypeV1 : STRUCT (*file command structure*)
  342. Version : UINT; (*used version*)
  343. Password : STRING[16]; (*password*)
  344. UDID_Low : UDINT; (*UDID low*)
  345. UDID_High : UINT; (*UDID high*)
  346. Unlock : USINT; (*unlock data*)
  347. DataSource : DataSourceTypeV1; (*local data or local file available, file upload from safeLOGIC not available*)
  348. pCrcs : UDINT; (*pointer to CRC data buffer*)
  349. NumberOfCrcs : UINT; (*size of CRC data Buffer*)
  350. NumberOfCrcsOut : UINT; (*number of CRCs*)
  351. END_STRUCT;
  352. DownloadAddParaTypeV1 : STRUCT (*additional parameter data*)
  353. SADR : UINT; (*safety address*)
  354. ID : USINT; (*id*)
  355. pParaData : UDINT; (*pointer to additional parameter data*)
  356. Length : UDINT; (*length*)
  357. pAcknAddPara : UDINT; (*pointer to acknowledge information*)
  358. END_STRUCT;
  359. DownloadDeviceTypeV1 : STRUCT (*safety device*)
  360. SADR : UINT; (*safety address*)
  361. UDID_Low : UDINT; (*UDID low*)
  362. UDID_High : UINT; (*UDID high*)
  363. END_STRUCT;
  364. DownloadTableTypeV1 : STRUCT (*table data*)
  365. Device : STRING[80]; (*device for file*)
  366. File : STRING[80]; (*file name*)
  367. END_STRUCT;
  368. DownloadTableTypeV2 : STRUCT (*table data*)
  369. Type : UINT; (*safeTABLE_FILE_TYPE .. use Device / File, safeTABLE_DATA_TYPE .. use pData / DataLen*)
  370. Device : STRING[80]; (*device for file*)
  371. File : STRING[80]; (*file name*)
  372. pData : UDINT; (*pointer to table data *)
  373. DataLen : UDINT; (*length of table data*)
  374. END_STRUCT;
  375. RemoteControlCmdTypeV1 : STRUCT (*remote control command structure*)
  376. Version : UINT; (*used version*)
  377. Command : UINT; (*command*)
  378. Number : UINT; (*actual number*)
  379. Data : UINT; (*data*)
  380. Password : STRING[16]; (*password*)
  381. NewPassword : STRING[16]; (*new password*)
  382. END_STRUCT;
  383. RemoteControlStatusTypeV1 : STRUCT (*remote control status from SafeLOGIC*)
  384. Command : UINT; (*last received command*)
  385. Number : UINT; (*running number of last received command*)
  386. Status : UINT; (*status of command*)
  387. State : UINT; (*state of the last ENTER command*)
  388. EnterData : UINT; (*last received ENTER command that was correct executed*)
  389. EnterNumber : UINT; (*running number of the last received ENTER command*)
  390. EnterExecuteStatus : UINT; (*state of the last received ENTER command*)
  391. SafeOSState : USINT; (*status of the safety application*)
  392. SafeKEYChanged : USINT; (*SafeKEY has been exchanged*)
  393. LedTestActive : USINT; (*LED test active*)
  394. Scanning : USINT; (*module scan active*)
  395. openSAFETYstate : USINT; (*status of openSAFETY stack*)
  396. FailSafe : USINT; (*Fail-Safe status*)
  397. NumberOfMissingModules : UINT; (*number of missing modules*)
  398. NumberOfUDIDMismatches : UINT; (*number of mismatched modules*)
  399. NumberOfDifferentFirmware : UINT; (*number of modules with different firmware*)
  400. SADR : ARRAY[0..100]OF UINT; (*safety address array*)
  401. MissingModules : ARRAY[0..15]OF USINT; (*missing modules array*)
  402. UDIDMismatches : ARRAY[0..15]OF USINT; (*udid mismatch array*)
  403. DifferentFirmware : ARRAY[0..15]OF USINT; (*different firmware array*)
  404. END_STRUCT;
  405. RemoteControlStatusTypeV2 : STRUCT (*remote control status from SafeLOGIC*)
  406. Command : UINT; (*last received command*)
  407. Number : UINT; (*running number of last received command*)
  408. Status : UINT; (*status of command*)
  409. State : UINT; (*state of the last ENTER command*)
  410. EnterData : UINT; (*last received ENTER command that was correct executed*)
  411. EnterNumber : UINT; (*running number of the last received ENTER command*)
  412. EnterExecuteStatus : UINT; (*state of the last received ENTER command*)
  413. SafeOSState : USINT; (*status of the safety application*)
  414. SafeKEYChanged : USINT; (*SafeKEY has been exchanged*)
  415. LedTestActive : USINT; (*LED test active*)
  416. Scanning : USINT; (*module scan active*)
  417. openSAFETYstate : USINT; (*status of openSAFETY stack*)
  418. FailSafe : USINT; (*Fail-Safe status*)
  419. NumberOfMissingModules : UINT; (*number of missing modules*)
  420. NumberOfUDIDMismatches : UINT; (*number of mismatched modules*)
  421. NumberOfDifferentFirmware : UINT; (*number of modules with different firmware*)
  422. SADR : ARRAY[0..299]OF UINT; (*safety address array*)
  423. MissingModules : ARRAY[0..39]OF USINT; (*missing modules array*)
  424. UDIDMismatches : ARRAY[0..39]OF USINT; (*udid mismatch array*)
  425. DifferentFirmware : ARRAY[0..39]OF USINT; (*different firmware array*)
  426. NumberOfConfiguredModules : UINT; (*number of configured modules*)
  427. SetupModeActive : USINT; (*setup mode active*)
  428. ProjectPresent : USINT; (*project present*)
  429. PasswordSet : USINT; (*password set*)
  430. IsSL81xx : USINT; (*SCM is part of SL81xx*)
  431. IsSCMar : USINT; (*SCM is part of SCMar*)
  432. SetupModeSupported : USINT; (*setup mode is supported*)
  433. END_STRUCT;
  434. TableHeaderATypeV1 : STRUCT (*header struct for table type A version 1*)
  435. xTol : DINT;
  436. yTol : DINT;
  437. END_STRUCT;
  438. TableEntryATypeV1 : STRUCT (*entry struct for table type A version 1*)
  439. xVal : DINT;
  440. yVal : DINT;
  441. resVal : USINT;
  442. END_STRUCT;
  443. TableEntryBTypeV1 : STRUCT (*entry struct for table type B version 1*)
  444. xVal : DINT;
  445. yVal : DINT;
  446. zVal : DINT;
  447. resVal : DINT;
  448. END_STRUCT;
  449. TableEntryCTypeV1 : STRUCT (*entry struct for table type C version 1*)
  450. Zone : UINT;
  451. Position : UINT;
  452. Dimension : UINT;
  453. END_STRUCT;
  454. TableHeaderDTypeV1 : STRUCT (*header struct for table type A version 1*)
  455. Surveillance : BYTE;
  456. END_STRUCT;
  457. TableEntryDTypeV1 : STRUCT (*entry struct for table type D version 1*)
  458. Object : UINT;
  459. Type : UINT;
  460. MinimumBeam : UINT;
  461. MaximumBeam : UINT;
  462. Dimension : UINT;
  463. DimensionTolerance : UINT;
  464. END_STRUCT;
  465. TableHeaderETypeV1 : STRUCT (*header struct for table type E version 1*)
  466. xDim : INT;
  467. yDim : INT;
  468. END_STRUCT;
  469. TableEntryETypeV1 : STRUCT (*entry struct for table type D version 1*)
  470. Entry : DINT;
  471. END_STRUCT;
  472. TableEntrySTypeV1 : STRUCT (*entry struct for table type S version 1*)
  473. LinkTargetObjectID : DINT;
  474. LinkTargetAxisType : DINT;
  475. LinkSourceObjectID : DINT;
  476. LinkSourceAxisType : DINT;
  477. LinkFactorNum : DINT;
  478. LinkFactorDenom : DINT;
  479. END_STRUCT;
  480. TableHeaderTTypeV1 : STRUCT (*header struct for table type T version 1*)
  481. NumberOfActiveAxes : DINT; (*number of active axes*)
  482. END_STRUCT;
  483. TableEntryTTypeV1 : STRUCT (*entry struct for table type T version 1*)
  484. KinObjID : DINT;
  485. KinObjType : DINT;
  486. KinObjTransX : DINT;
  487. KinObjTransY : DINT;
  488. KinObjTransZ : DINT;
  489. KinObjRotAngle1 : DINT;
  490. KinObjRotAngle2 : DINT;
  491. KinObjRotAngle3 : DINT;
  492. KinObjRotaryAxisDecRamp : DINT;
  493. KinObjRotaryAxisMaxAcc : DINT;
  494. KinObjLinearAxisDecRamp : DINT;
  495. KinObjLinearAxisMaxAcc : DINT;
  496. END_STRUCT;
  497. TableHeaderTTypeV2 : STRUCT (*header struct for table type T version 2*)
  498. NumberOfTableObjects : UINT;
  499. VersionNumber : UINT;
  500. NumberOfActiveAxes : DINT;
  501. END_STRUCT;
  502. TableEntryTTypeV2 : STRUCT (*entry struct for table type T version 2*)
  503. KinObjID : DINT;
  504. KinObjType : DINT;
  505. KinObjTransX : DINT;
  506. KinObjTransY : DINT;
  507. KinObjTransZ : DINT;
  508. KinObjRotAngle1 : DINT;
  509. KinObjRotAngle2 : DINT;
  510. KinObjRotAngle3 : DINT;
  511. KinObjRotaryAxisDecRamp : DINT;
  512. KinObjRotaryAxisMaxAcc : DINT;
  513. KinObjLinearAxisDecRamp : DINT;
  514. KinObjLinearAxisMaxAcc : DINT;
  515. KinObjActivateWireFrameModel : DINT;
  516. KinObjDistanceToBndElements : DINT;
  517. END_STRUCT;
  518. TableHeaderTTypeV3 : STRUCT (*header struct for table type T version 3*)
  519. NumberOfTableObjects : UINT;
  520. VersionNumber : UINT;
  521. NumberOfActiveAxes : DINT;
  522. END_STRUCT;
  523. TableEntryTTypeV3 : STRUCT (*entry struct for table type T version 3*)
  524. KinObjID : DINT;
  525. KinObjType : DINT;
  526. KinObjTransX : DINT;
  527. KinObjTransY : DINT;
  528. KinObjTransZ : DINT;
  529. KinObjRotAngle1 : DINT;
  530. KinObjRotAngle2 : DINT;
  531. KinObjRotAngle3 : DINT;
  532. KinObjRotaryAxisDecRamp : DINT;
  533. KinObjRotaryAxisMaxAcc : DINT;
  534. KinObjLinearAxisDecRamp : DINT;
  535. KinObjLinearAxisMaxAcc : DINT;
  536. KinObjActivateWireFrameModel : DINT;
  537. KinObjDistanceToBndElements : DINT;
  538. END_STRUCT;
  539. TableEntryUTypeV1 : STRUCT (*entry struct for table type U version 1*)
  540. SpaceID : DINT;
  541. SpaceType : DINT;
  542. SpaceTransX : DINT;
  543. SpaceTransY : DINT;
  544. SpaceTransZ : DINT;
  545. SpaceRotAngle1 : DINT;
  546. SpaceRotAngle2 : DINT;
  547. SpaceRotAngle3 : DINT;
  548. SpaceDimensionX : DINT;
  549. SpaceDimensionY : DINT;
  550. SpaceDimensionZ : DINT;
  551. END_STRUCT;
  552. TableEntryVTypeV1 : STRUCT (*entry struct for table type V version 1*)
  553. SpaceID : DINT;
  554. SpaceType : DINT;
  555. KinObjID : DINT;
  556. KinObjJointAxisType : DINT;
  557. SpaceMaxLimit : DINT;
  558. SpaceMinLimit : DINT;
  559. END_STRUCT;
  560. TableEntryWTypeV1 : STRUCT (* entry struct for table type W version 1*)
  561. OrientID : DINT;
  562. OrientType : DINT;
  563. OrientTransX_RotAngle1 : DINT;
  564. OrientTransY_RotAngle2 : DINT;
  565. OrientTransZ_RotAngle3 : DINT;
  566. END_STRUCT;
  567. END_TYPE