Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
etherlabmaster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ICS Control System Infrastructure
etherlabmaster
Commits
08a42c11
Commit
08a42c11
authored
15 years ago
by
Florian Pose
Browse files
Options
Downloads
Patches
Plain Diff
Included futher AL status code messages.
parent
4b63d642
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
master/fsm_change.c
+30
-10
30 additions, 10 deletions
master/fsm_change.c
with
30 additions
and
10 deletions
master/fsm_change.c
+
30
−
10
View file @
08a42c11
...
@@ -335,7 +335,9 @@ void ec_fsm_change_state_status(ec_fsm_change_t *fsm
...
@@ -335,7 +335,9 @@ void ec_fsm_change_state_status(ec_fsm_change_t *fsm
*/
*/
const
ec_code_msg_t
al_status_messages
[]
=
{
const
ec_code_msg_t
al_status_messages
[]
=
{
{
0x0000
,
"No error"
},
{
0x0001
,
"Unspecified error"
},
{
0x0001
,
"Unspecified error"
},
{
0x0002
,
"No Memory"
},
{
0x0011
,
"Invalid requested state change"
},
{
0x0011
,
"Invalid requested state change"
},
{
0x0012
,
"Unknown requested state"
},
{
0x0012
,
"Unknown requested state"
},
{
0x0013
,
"Bootstrap not supported"
},
{
0x0013
,
"Bootstrap not supported"
},
...
@@ -345,7 +347,7 @@ const ec_code_msg_t al_status_messages[] = {
...
@@ -345,7 +347,7 @@ const ec_code_msg_t al_status_messages[] = {
{
0x0017
,
"Invalid sync manager configuration"
},
{
0x0017
,
"Invalid sync manager configuration"
},
{
0x0018
,
"No valid inputs available"
},
{
0x0018
,
"No valid inputs available"
},
{
0x0019
,
"No valid outputs"
},
{
0x0019
,
"No valid outputs"
},
{
0x001A
,
"Synchroni
s
ation error"
},
{
0x001A
,
"Synchroni
z
ation error"
},
{
0x001B
,
"Sync manager watchdog"
},
{
0x001B
,
"Sync manager watchdog"
},
{
0x001C
,
"Invalid sync manager types"
},
{
0x001C
,
"Invalid sync manager types"
},
{
0x001D
,
"Invalid output configuration"
},
{
0x001D
,
"Invalid output configuration"
},
...
@@ -355,19 +357,37 @@ const ec_code_msg_t al_status_messages[] = {
...
@@ -355,19 +357,37 @@ const ec_code_msg_t al_status_messages[] = {
{
0x0021
,
"Slave needs INIT"
},
{
0x0021
,
"Slave needs INIT"
},
{
0x0022
,
"Slave needs PREOP"
},
{
0x0022
,
"Slave needs PREOP"
},
{
0x0023
,
"Slave needs SAFEOP"
},
{
0x0023
,
"Slave needs SAFEOP"
},
{
0x0024
,
"Invalid Input Mapping"
},
{
0x0025
,
"Invalid Output Mapping"
},
{
0x0026
,
"Inconsistent Settings"
},
{
0x0027
,
"Freerun not supported"
},
{
0x0028
,
"Synchronization not supported"
},
{
0x0029
,
"Freerun needs 3 Buffer Mode"
},
{
0x002A
,
"Background Watchdog"
},
{
0x002B
,
"No Valid Inputs and Outputs"
},
{
0x002C
,
"Fatal Sync Error"
},
{
0x002D
,
"No Sync Error"
},
{
0x0030
,
"Invalid DC SYNCH configuration"
},
{
0x0030
,
"Invalid DC SYNCH configuration"
},
{
0x0031
,
"Invalid DC latch configuration"
},
{
0x0031
,
"Invalid DC latch configuration"
},
{
0x0032
,
"PLL error"
},
{
0x0032
,
"PLL error"
},
{
0x0033
,
"Invalid DC IO error"
},
{
0x0033
,
"DC Sync IO Error"
},
{
0x0034
,
"Invalid DC timeout error"
},
{
0x0034
,
"DC Sync Timeout Error"
},
{
0x0042
,
"MBOX EOE"
},
{
0x0035
,
"DC Invalid Sync Cycle Time"
},
{
0x0043
,
"MBOX COE"
},
{
0x0036
,
"DC Sync0 Cycle Time"
},
{
0x0044
,
"MBOX FOE"
},
{
0x0037
,
"DC Sync1 Cycle Time"
},
{
0x0045
,
"MBOX SOE"
},
{
0x0041
,
"MBX_AOE"
},
{
0x004F
,
"MBOX VOE"
},
{
0x0042
,
"MBX_EOE"
},
{}
{
0x0043
,
"MBX_COE"
},
{
0x0044
,
"MBX_FOE"
},
{
0x0045
,
"MBX_SOE"
},
{
0x004F
,
"MBX_VOE"
},
{
0x0050
,
"EEPROM No Access"
},
{
0x0051
,
"EEPROM Error"
},
{
0x0060
,
"Slave Restarted Locally"
},
{
0xffff
}
};
};
/*****************************************************************************/
/*****************************************************************************/
/**
/**
...
@@ -397,7 +417,7 @@ void ec_fsm_change_state_code(ec_fsm_change_t *fsm
...
@@ -397,7 +417,7 @@ void ec_fsm_change_state_code(ec_fsm_change_t *fsm
ec_datagram_print_wc_error
(
datagram
);
ec_datagram_print_wc_error
(
datagram
);
}
else
{
}
else
{
code
=
EC_READ_U16
(
datagram
->
data
);
code
=
EC_READ_U16
(
datagram
->
data
);
for
(
al_msg
=
al_status_messages
;
al_msg
->
code
;
al_msg
++
)
{
for
(
al_msg
=
al_status_messages
;
al_msg
->
code
!=
0xffff
;
al_msg
++
)
{
if
(
al_msg
->
code
!=
code
)
continue
;
if
(
al_msg
->
code
!=
code
)
continue
;
EC_ERR
(
"AL status message 0x%04X:
\"
%s
\"
.
\n
"
,
EC_ERR
(
"AL status message 0x%04X:
\"
%s
\"
.
\n
"
,
al_msg
->
code
,
al_msg
->
message
);
al_msg
->
code
,
al_msg
->
message
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment