prod2u_p4_normal_host_contract_v4.json 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. {
  2. "schema": "prod2u-p4-normal-host-contract-v4",
  3. "profile": "prod2u-p4-normal-actuator-binary921-v3",
  4. "profile_id": 4,
  5. "protocol": "binary921-v3",
  6. "version_source": "full_git_commit",
  7. "wire": {
  8. "magic_hex": "A55A",
  9. "version": 2,
  10. "seq": 0,
  11. "timestamp_tick": 0,
  12. "header_offsets": {
  13. "magic": [0, 1],
  14. "version": 2,
  15. "profile_id": 3,
  16. "frame_type": 4,
  17. "seq_u32_le": [5, 8],
  18. "timestamp_tick_u32_le": [9, 12],
  19. "payload_length_u8": 13,
  20. "payload": [14, "14+payload_length-1"],
  21. "crc16_le": ["14+payload_length", "15+payload_length"]
  22. },
  23. "crc16": {
  24. "name": "CRC-16/CCITT-FALSE",
  25. "polynomial": 4129,
  26. "initial": 65535,
  27. "reflect_input": false,
  28. "reflect_output": false,
  29. "xor_output": 0,
  30. "coverage": "version_through_payload_inclusive",
  31. "wire_byte_order": "little-endian"
  32. },
  33. "request_compatibility": "BYTE_EXACT_FROZEN",
  34. "ordinary_response_order": ["HOST_ACK"],
  35. "motor_status_response_order": ["HOST_ACK", "MOTION_STATUS"],
  36. "unsolicited_frames": false
  37. },
  38. "frame_types": {
  39. "HOST_CMD": 5,
  40. "HOST_ACK": 6,
  41. "HOST_BATCH_CMD": 7,
  42. "MOTION_CMD": 17,
  43. "MOTION_STATUS": 18
  44. },
  45. "commands": {
  46. "get_status": {
  47. "frame_type": 5,
  48. "command": 36,
  49. "payload_length": 4,
  50. "payload_hex": "24 00 00 00",
  51. "response": "HOST_ACK",
  52. "always_accepted": true
  53. },
  54. "disable": {
  55. "frame_type": 5,
  56. "command": 38,
  57. "payload_length": 4,
  58. "payload_hex": "26 00 00 00",
  59. "response": "HOST_ACK",
  60. "always_accepted": true,
  61. "effect": "IMMEDIATE_SAFE_NON_MOTOR_OUTPUTS",
  62. "motor_effect": "NONE",
  63. "non_motor_effect": "IMMEDIATE_SAFE_OUTPUTS"
  64. },
  65. "set_output_snapshot": {
  66. "frame_type": 7,
  67. "command": 42,
  68. "payload_length": 34,
  69. "full_frame_length": 50,
  70. "input_layout": "2A flags PTC1..24 FAN1..4 solenoid X Y Z",
  71. "ptc_range": [0, 100],
  72. "fan_range": [0, 100],
  73. "binary_values": [0, 100],
  74. "xyz_range": [0, 255],
  75. "xyz_policy": "IGNORE_ANY_U8_NO_MOTOR_EFFECT",
  76. "motor_effect": "NONE",
  77. "ptc_fan_commit_when_motion_busy": true,
  78. "solenoid_change_when_any_xy_busy": "ALWAYS_COMMIT",
  79. "axis_policy": "IGNORE_ANY_U8_NO_MOTOR_EFFECT",
  80. "response": "HOST_ACK"
  81. },
  82. "jog": {
  83. "frame_type": 17,
  84. "command": 53,
  85. "payload_length": 8,
  86. "full_frame_length": 24,
  87. "input_layout": "35 axis raw_dir speed_code steps_u16_le 00 00",
  88. "axes": {"X": 0, "Y": 1, "Z_PROTOCOL_ONLY": 2},
  89. "cli_axes": ["X", "Y"],
  90. "reserved_z_status": "BAD_VALUE",
  91. "direction": {"OPEN_UP": 0, "CLOSE_DOWN": 1},
  92. "speed_codes": [0, 1, 2, 3],
  93. "step_range": [1, 65535],
  94. "step_field_policy": "RAW_U16_TRUSTED_HOST_NO_CPLD_CAP",
  95. "fast_path_policy": "RX_FAST_JOG_BYPASSES_NORMAL_REQUEST_SLOT",
  96. "executed_step_cap": null,
  97. "over_cap_status": "NOT_APPLICABLE",
  98. "over_cap_behavior": "EXECUTE_REQUESTED_U16_STEPS",
  99. "speed_field_policy": "VALIDATE_0_TO_3_THEN_IGNORE",
  100. "effective_step_rate_hz": 1000,
  101. "ack_semantics": "FIRST_STEP_EMITTED",
  102. "arms_watchdog": false,
  103. "same_axis_active_policy": "IMMEDIATE_RELOAD_AND_RESTART_DIR_SETUP",
  104. "same_axis_host_rule": "HOST_MUST_NOT_REPEAT_SAME_AXIS_BEFORE_COMPLETION",
  105. "same_axis_violation_policy": "LATEST_COMMAND_WINS_OLD_ACK_NOT_GUARANTEED",
  106. "multiple_pending_policy": "NONE",
  107. "replacement_dir_setup_us": 1000,
  108. "limit_policy": "IGNORE_ALL_INPUTS",
  109. "rejects_busy": false,
  110. "admission_ignores": [
  111. "AXIS_ACTIVE",
  112. "SNAPSHOT_VALID",
  113. "LIMIT_INPUTS",
  114. "WATCHDOG_TIMEOUT"
  115. ],
  116. "watchdog_timeout_recovery": "NOT_APPLICABLE_TIMEOUT_HAS_NO_MOTOR_EFFECT",
  117. "peer_axis_busy_does_not_block": true,
  118. "completion_event": "NONE_HOST_TRACKS_TIME",
  119. "response": "HOST_ACK"
  120. },
  121. "mark_closed": {
  122. "frame_type": 17,
  123. "command": 54,
  124. "payload_length": 8,
  125. "input_layout_preserved": true,
  126. "status": "UNSUPPORTED_IN_PROFILE",
  127. "status_code": 1,
  128. "changes_state": false
  129. },
  130. "get_motor_status": {
  131. "frame_type": 17,
  132. "command": 55,
  133. "payload_length": 8,
  134. "payload_hex": "37 00 00 00 00 00 00 00",
  135. "responses": ["HOST_ACK", "MOTION_STATUS"],
  136. "always_accepted": true,
  137. "refreshes_watchdog_only_when_armed": true
  138. }
  139. },
  140. "unsupported_commands": {
  141. "0x29": {
  142. "request_payload_hex": "29 00 00 00",
  143. "status": "UNSUPPORTED_IN_PROFILE",
  144. "status_code": 1,
  145. "changes_state": false,
  146. "arms_watchdog": false
  147. },
  148. "0x36": {
  149. "status": "UNSUPPORTED_IN_PROFILE",
  150. "status_code": 1,
  151. "changes_state": false,
  152. "arms_watchdog": false
  153. }
  154. },
  155. "responses": {
  156. "host_ack": {
  157. "frame_type": 6,
  158. "payload_length": 8,
  159. "full_frame_length": 24,
  160. "byte_offsets": {
  161. "ok": 14,
  162. "command": 15,
  163. "status": 16,
  164. "detail": 17,
  165. "state_hash16": [18, 19],
  166. "response_type": 20,
  167. "result_flags": 21,
  168. "crc": [22, 23]
  169. },
  170. "state_hash16": {
  171. "algorithm": "CRC-16/CCITT-FALSE",
  172. "encoding": "u16_le",
  173. "input_order": ["applied_PTC1..24", "applied_FAN1..4", "applied_solenoid"],
  174. "semantic": "ACTUAL_APPLIED_SYNCHRONOUS_OUTPUTS"
  175. },
  176. "snapshot_detail_bits": {"all_bits": "ZERO"},
  177. "snapshot_result_flag_bits": {
  178. "ptc_fan_solenoid_committed": 0,
  179. "axis_bits_3_to_1": "ZERO"
  180. },
  181. "status_codes": {
  182. "OK": 0,
  183. "UNSUPPORTED_IN_PROFILE": 1,
  184. "BAD_FLAGS": 2,
  185. "BAD_LENGTH": 3,
  186. "BAD_VALUE": 5,
  187. "BUSY": 9,
  188. "PARTIAL": 22
  189. }
  190. },
  191. "motion_status": {
  192. "frame_type": 18,
  193. "payload_length": 10,
  194. "full_frame_length": 26,
  195. "layout": "flags valid_mask busy_mask current_xyz target_xyz fault_mask",
  196. "position_values": {"UNKNOWN": 255},
  197. "position_valid_mask": 0,
  198. "current_xyz": [255, 255, 255],
  199. "target_xyz": [255, 255, 255],
  200. "busy_mask": 0,
  201. "busy_semantic": "ALWAYS_ZERO",
  202. "busy_role": "RESERVED_CONSTANT_ZERO",
  203. "enable_active": 1,
  204. "fault_mask": 0,
  205. "z_current_target": 255,
  206. "z_valid_busy_fault": 0
  207. }
  208. },
  209. "motion": {
  210. "axes": ["X", "Y"],
  211. "execution": "TWO_INDEPENDENT_PARALLEL_EXECUTORS",
  212. "motor_driving_commands": ["0x35"],
  213. "jog_ack_semantics": "FIRST_STEP_EMITTED",
  214. "same_axis_jog_while_active": "IMMEDIATE_RELOAD_AND_RESTART_DIR_SETUP",
  215. "peer_axis_may_start": true,
  216. "dir_setup_us": 1000,
  217. "effective_step_rate_hz": 1000,
  218. "normal_step_stop": "NEW_SAME_AXIS_JOG_MAY_TRUNCATE_OLD_STEP",
  219. "motor_stop_sources": ["RESET", "POWER_LOSS", "RECONFIGURATION"]
  220. },
  221. "limit": {
  222. "axes": ["X", "Y"],
  223. "polarity": "ACTIVE_HIGH",
  224. "open_voltage_v": 0.0,
  225. "closed_voltage_v": 3.3,
  226. "synchronizer_stages": 0,
  227. "pins_retained": true,
  228. "logic_consumer": "NONE",
  229. "used_only_for": "RETAINED_PINS_NO_LOGIC_CONSUMER",
  230. "motion_effect": "NONE",
  231. "dir0_jog_ignores_limit": true,
  232. "dir1_jog_ignores_limit": true,
  233. "position_memory": false,
  234. "direction_learning": false
  235. },
  236. "watchdog": {
  237. "timeout_seconds": 5,
  238. "accepted_output_arms": true,
  239. "accepted_motion_arms": false,
  240. "armed_get_motor_status_refreshes": true,
  241. "status_query_cannot_arm_or_revive": true,
  242. "expiry_beats_same_cycle_refresh": true,
  243. "expiry_requires_disable_before_rearm": false,
  244. "next_valid_output_clears_timeout_and_rearms": true,
  245. "motor_effect": "NONE",
  246. "non_motor_effect": "SAFE_OUTPUTS"
  247. },
  248. "programming": {
  249. "operation": "PROGRAM_SRAM",
  250. "speed_hz": 200000,
  251. "attempt_limit": 1,
  252. "automatic_retry": false,
  253. "flash_allowed": false
  254. }
  255. }