| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- {
- "schema": "prod2u-p4-normal-host-contract-v4",
- "profile": "prod2u-p4-normal-actuator-binary921-v3",
- "profile_id": 4,
- "protocol": "binary921-v3",
- "version_source": "full_git_commit",
- "wire": {
- "magic_hex": "A55A",
- "version": 2,
- "seq": 0,
- "timestamp_tick": 0,
- "header_offsets": {
- "magic": [0, 1],
- "version": 2,
- "profile_id": 3,
- "frame_type": 4,
- "seq_u32_le": [5, 8],
- "timestamp_tick_u32_le": [9, 12],
- "payload_length_u8": 13,
- "payload": [14, "14+payload_length-1"],
- "crc16_le": ["14+payload_length", "15+payload_length"]
- },
- "crc16": {
- "name": "CRC-16/CCITT-FALSE",
- "polynomial": 4129,
- "initial": 65535,
- "reflect_input": false,
- "reflect_output": false,
- "xor_output": 0,
- "coverage": "version_through_payload_inclusive",
- "wire_byte_order": "little-endian"
- },
- "request_compatibility": "BYTE_EXACT_FROZEN",
- "ordinary_response_order": ["HOST_ACK"],
- "motor_status_response_order": ["HOST_ACK", "MOTION_STATUS"],
- "unsolicited_frames": false
- },
- "frame_types": {
- "HOST_CMD": 5,
- "HOST_ACK": 6,
- "HOST_BATCH_CMD": 7,
- "MOTION_CMD": 17,
- "MOTION_STATUS": 18
- },
- "commands": {
- "get_status": {
- "frame_type": 5,
- "command": 36,
- "payload_length": 4,
- "payload_hex": "24 00 00 00",
- "response": "HOST_ACK",
- "always_accepted": true
- },
- "disable": {
- "frame_type": 5,
- "command": 38,
- "payload_length": 4,
- "payload_hex": "26 00 00 00",
- "response": "HOST_ACK",
- "always_accepted": true,
- "effect": "IMMEDIATE_SAFE_NON_MOTOR_OUTPUTS",
- "motor_effect": "NONE",
- "non_motor_effect": "IMMEDIATE_SAFE_OUTPUTS"
- },
- "set_output_snapshot": {
- "frame_type": 7,
- "command": 42,
- "payload_length": 34,
- "full_frame_length": 50,
- "input_layout": "2A flags PTC1..24 FAN1..4 solenoid X Y Z",
- "ptc_range": [0, 100],
- "fan_range": [0, 100],
- "binary_values": [0, 100],
- "xyz_range": [0, 255],
- "xyz_policy": "IGNORE_ANY_U8_NO_MOTOR_EFFECT",
- "motor_effect": "NONE",
- "ptc_fan_commit_when_motion_busy": true,
- "solenoid_change_when_any_xy_busy": "ALWAYS_COMMIT",
- "axis_policy": "IGNORE_ANY_U8_NO_MOTOR_EFFECT",
- "response": "HOST_ACK"
- },
- "jog": {
- "frame_type": 17,
- "command": 53,
- "payload_length": 8,
- "full_frame_length": 24,
- "input_layout": "35 axis raw_dir speed_code steps_u16_le 00 00",
- "axes": {"X": 0, "Y": 1, "Z_PROTOCOL_ONLY": 2},
- "cli_axes": ["X", "Y"],
- "reserved_z_status": "BAD_VALUE",
- "direction": {"OPEN_UP": 0, "CLOSE_DOWN": 1},
- "speed_codes": [0, 1, 2, 3],
- "step_range": [1, 65535],
- "step_field_policy": "RAW_U16_TRUSTED_HOST_NO_CPLD_CAP",
- "fast_path_policy": "RX_FAST_JOG_BYPASSES_NORMAL_REQUEST_SLOT",
- "executed_step_cap": null,
- "over_cap_status": "NOT_APPLICABLE",
- "over_cap_behavior": "EXECUTE_REQUESTED_U16_STEPS",
- "speed_field_policy": "VALIDATE_0_TO_3_THEN_IGNORE",
- "effective_step_rate_hz": 1000,
- "ack_semantics": "FIRST_STEP_EMITTED",
- "arms_watchdog": false,
- "same_axis_active_policy": "IMMEDIATE_RELOAD_AND_RESTART_DIR_SETUP",
- "same_axis_host_rule": "HOST_MUST_NOT_REPEAT_SAME_AXIS_BEFORE_COMPLETION",
- "same_axis_violation_policy": "LATEST_COMMAND_WINS_OLD_ACK_NOT_GUARANTEED",
- "multiple_pending_policy": "NONE",
- "replacement_dir_setup_us": 1000,
- "limit_policy": "IGNORE_ALL_INPUTS",
- "rejects_busy": false,
- "admission_ignores": [
- "AXIS_ACTIVE",
- "SNAPSHOT_VALID",
- "LIMIT_INPUTS",
- "WATCHDOG_TIMEOUT"
- ],
- "watchdog_timeout_recovery": "NOT_APPLICABLE_TIMEOUT_HAS_NO_MOTOR_EFFECT",
- "peer_axis_busy_does_not_block": true,
- "completion_event": "NONE_HOST_TRACKS_TIME",
- "response": "HOST_ACK"
- },
- "mark_closed": {
- "frame_type": 17,
- "command": 54,
- "payload_length": 8,
- "input_layout_preserved": true,
- "status": "UNSUPPORTED_IN_PROFILE",
- "status_code": 1,
- "changes_state": false
- },
- "get_motor_status": {
- "frame_type": 17,
- "command": 55,
- "payload_length": 8,
- "payload_hex": "37 00 00 00 00 00 00 00",
- "responses": ["HOST_ACK", "MOTION_STATUS"],
- "always_accepted": true,
- "refreshes_watchdog_only_when_armed": true
- }
- },
- "unsupported_commands": {
- "0x29": {
- "request_payload_hex": "29 00 00 00",
- "status": "UNSUPPORTED_IN_PROFILE",
- "status_code": 1,
- "changes_state": false,
- "arms_watchdog": false
- },
- "0x36": {
- "status": "UNSUPPORTED_IN_PROFILE",
- "status_code": 1,
- "changes_state": false,
- "arms_watchdog": false
- }
- },
- "responses": {
- "host_ack": {
- "frame_type": 6,
- "payload_length": 8,
- "full_frame_length": 24,
- "byte_offsets": {
- "ok": 14,
- "command": 15,
- "status": 16,
- "detail": 17,
- "state_hash16": [18, 19],
- "response_type": 20,
- "result_flags": 21,
- "crc": [22, 23]
- },
- "state_hash16": {
- "algorithm": "CRC-16/CCITT-FALSE",
- "encoding": "u16_le",
- "input_order": ["applied_PTC1..24", "applied_FAN1..4", "applied_solenoid"],
- "semantic": "ACTUAL_APPLIED_SYNCHRONOUS_OUTPUTS"
- },
- "snapshot_detail_bits": {"all_bits": "ZERO"},
- "snapshot_result_flag_bits": {
- "ptc_fan_solenoid_committed": 0,
- "axis_bits_3_to_1": "ZERO"
- },
- "status_codes": {
- "OK": 0,
- "UNSUPPORTED_IN_PROFILE": 1,
- "BAD_FLAGS": 2,
- "BAD_LENGTH": 3,
- "BAD_VALUE": 5,
- "BUSY": 9,
- "PARTIAL": 22
- }
- },
- "motion_status": {
- "frame_type": 18,
- "payload_length": 10,
- "full_frame_length": 26,
- "layout": "flags valid_mask busy_mask current_xyz target_xyz fault_mask",
- "position_values": {"UNKNOWN": 255},
- "position_valid_mask": 0,
- "current_xyz": [255, 255, 255],
- "target_xyz": [255, 255, 255],
- "busy_mask": 0,
- "busy_semantic": "ALWAYS_ZERO",
- "busy_role": "RESERVED_CONSTANT_ZERO",
- "enable_active": 1,
- "fault_mask": 0,
- "z_current_target": 255,
- "z_valid_busy_fault": 0
- }
- },
- "motion": {
- "axes": ["X", "Y"],
- "execution": "TWO_INDEPENDENT_PARALLEL_EXECUTORS",
- "motor_driving_commands": ["0x35"],
- "jog_ack_semantics": "FIRST_STEP_EMITTED",
- "same_axis_jog_while_active": "IMMEDIATE_RELOAD_AND_RESTART_DIR_SETUP",
- "peer_axis_may_start": true,
- "dir_setup_us": 1000,
- "effective_step_rate_hz": 1000,
- "normal_step_stop": "NEW_SAME_AXIS_JOG_MAY_TRUNCATE_OLD_STEP",
- "motor_stop_sources": ["RESET", "POWER_LOSS", "RECONFIGURATION"]
- },
- "limit": {
- "axes": ["X", "Y"],
- "polarity": "ACTIVE_HIGH",
- "open_voltage_v": 0.0,
- "closed_voltage_v": 3.3,
- "synchronizer_stages": 0,
- "pins_retained": true,
- "logic_consumer": "NONE",
- "used_only_for": "RETAINED_PINS_NO_LOGIC_CONSUMER",
- "motion_effect": "NONE",
- "dir0_jog_ignores_limit": true,
- "dir1_jog_ignores_limit": true,
- "position_memory": false,
- "direction_learning": false
- },
- "watchdog": {
- "timeout_seconds": 5,
- "accepted_output_arms": true,
- "accepted_motion_arms": false,
- "armed_get_motor_status_refreshes": true,
- "status_query_cannot_arm_or_revive": true,
- "expiry_beats_same_cycle_refresh": true,
- "expiry_requires_disable_before_rearm": false,
- "next_valid_output_clears_timeout_and_rearms": true,
- "motor_effect": "NONE",
- "non_motor_effect": "SAFE_OUTPUTS"
- },
- "programming": {
- "operation": "PROGRAM_SRAM",
- "speed_hz": 200000,
- "attempt_limit": 1,
- "automatic_retry": false,
- "flash_allowed": false
- }
- }
|