Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
plcint-esa
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
ds
plcint-esa
Commits
7f54b0a3
Commit
7f54b0a3
authored
3 years ago
by
Graziano Scalamera
Browse files
Options
Downloads
Patches
Plain Diff
Add laser pointer acdc commands
parent
b0d70920
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
src/PLCesall.h
+15
-5
15 additions, 5 deletions
src/PLCesall.h
with
15 additions
and
5 deletions
src/PLCesall.h
+
15
−
5
View file @
7f54b0a3
...
...
@@ -347,8 +347,10 @@
#define CMD_NOTABI_TMP500_PFE_F01_01 145 //CMD_NOTABI_TMP500_PFE_F02_01
#define CMD_ABI_TMP500_PFE_F01_02 146 //CMD_ABI_TMP500_PFE_F02_02
#define CMD_NOTABI_TMP500_PFE_F01_02 147 //CMD_NOTABI_TMP500_PFE_F02_02
#define CMD_LASER_POINTER_ACDC_ON 148
#define CMD_LASER_POINTER_ACDC_OFF 149
#define MAX_COMMAND CMD_
NOTABI_TMP500_PFE_F01_02
#define MAX_COMMAND CMD_
LASER_POINTER_ACDC_OFF
static
int
blkcodes
[]
=
{
//byte offset from actDB
...
...
@@ -499,7 +501,9 @@ static int blkcodes[] = { //byte offset from actDB
7
,
// 144 //con 303 CMD_ABI_TMP500_PFE_F01_01 /con 404 CMD_ABI_TMP500_PFE_F02_01 //9.2
7
,
// 145 //con 303 CMD_NOTABI_TMP500_PFE_F01_01 /con 404 CMD_NOTABI_TMP500_PFE_F02_01 //9.3
7
,
// 146 //con 303 CMD_ABI_TMP500_PFE_F01_02 /con 404 CMD_ABI_TMP500_PFE_F02_02 //9.4
7
// 147 //con 303 CMD_NOTABI_TMP500_PFE_F01_02 /con 404 CMD_NOTABI_TMP500_PFE_F02_02 //9.5
7
,
// 147 //con 303 CMD_NOTABI_TMP500_PFE_F01_02 /con 404 CMD_NOTABI_TMP500_PFE_F02_02 //9.5
8
,
// 148 //con 303 CMD_LASER_POINTER_ACDC_ON
8
// 149 //con 303 CMD_LASER_POINTER_ACDC_OFF
};
static
u_int
maskcodes
[]
=
{
...
...
@@ -650,7 +654,9 @@ static u_int maskcodes[] = {
0x04
,
// 144 //con 303 CMD_ABI_TMP500_PFE_F01_01 /con 404 CMD_ABI_TMP500_PFE_F02_01 //9.2
0x08
,
// 145 //con 303 CMD_NOTABI_TMP500_PFE_F01_01 /con 404 CMD_NOTABI_TMP500_PFE_F02_01 //9.3
0x10
,
// 146 //con 303 CMD_ABI_TMP500_PFE_F01_02 /con 404 CMD_ABI_TMP500_PFE_F02_02 //9.4
0x20
// 147 //con 303 CMD_NOTABI_TMP500_PFE_F01_02 /con 404 CMD_NOTABI_TMP500_PFE_F02_02 //9.5
0x20
,
// 147 //con 303 CMD_NOTABI_TMP500_PFE_F01_02 /con 404 CMD_NOTABI_TMP500_PFE_F02_02 //9.5
0x01
,
// 148 //con 303 CMD_LASER_POINTER_ACDC_ON
0x02
// 149 //con 303 CMD_LASER_POINTER_ACDC_OFF
};
static
const
char
*
cmd_names
[][
FELCMDCODES
]
=
{
...
...
@@ -801,7 +807,9 @@ static const char *cmd_names[][FELCMDCODES] = {
{
"CMD_ABI_TMP500_PFE_F01_01"
,
"CMD_ABI_TMP500_PFE_F02_01"
,
""
,
""
,
""
},
//144
{
"CMD_NOTABI_TMP500_PFE_F01_01"
,
"CMD_NOTABI_TMP500_PFE_F02_01"
,
""
,
""
,
""
},
//145
{
"CMD_ABI_TMP500_PFE_F01_02"
,
"CMD_ABI_TMP500_PFE_F02_02"
,
""
,
""
,
""
},
//146
{
"CMD_NOTABI_TMP500_PFE_F01_02"
,
"CMD_NOTABI_TMP500_PFE_F02_02"
,
""
,
""
,
""
}
//147
{
"CMD_NOTABI_TMP500_PFE_F01_02"
,
"CMD_NOTABI_TMP500_PFE_F02_02"
,
""
,
""
,
""
},
//147
{
"CMD_LASER_POINTER_ACDC_ON"
,
""
,
""
,
""
,
""
},
//148
{
"CMD_LASER_POINTER_ACDC_OFF"
,
""
,
""
,
""
,
""
}
//149
};
static
const
char
*
cmd_comments
[][
FELCMDCODES
]
=
{
...
...
@@ -952,7 +960,9 @@ static const char *cmd_comments[][FELCMDCODES] = {
{
"CMD ABI TMP500_PFE_F01_01 (ON)"
,
"CMD ABI TMP500_PFE_F02_01 (ON)"
,
""
,
""
,
""
},
//144
{
"CMD NOTABI TMP500_PFE_F01_01 (OFF)"
,
"CMD NOTABI TMP500_PFE_F02_01 (OFF)"
,
""
,
""
,
""
},
//145
{
"CMD ABI TMP500_PFE_F01_02 (ON)"
,
"CMD ABI TMP500_PFE_F02_02 (ON)"
,
""
,
""
,
""
},
//146
{
"CMD NOTABI TMP500_PFE_F01_02 (OFF)"
,
"CMD NOTABI TMP500_PFE_F02_02 (OFF)"
,
""
,
""
,
""
}
//147
{
"CMD NOTABI TMP500_PFE_F01_02 (OFF)"
,
"CMD NOTABI TMP500_PFE_F02_02 (OFF)"
,
""
,
""
,
""
},
//147
{
"CMD LASER_POINTER_ACDC_ON"
,
""
,
""
,
""
,
""
},
//148
{
"CMD LASER_POINTER_ACDC_OFF"
,
""
,
""
,
""
,
""
}
//149
};
static
int
felcodes
[]
=
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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