Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
daaea6e7
Commit
daaea6e7
authored
May 09, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lower scantime limit for linux
parent
5488cc09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
wb/lib/wb/src/wb_gcg.cpp
wb/lib/wb/src/wb_gcg.cpp
+7
-11
No files found.
wb/lib/wb/src/wb_gcg.cpp
View file @
daaea6e7
/*
* Proview $Id: wb_gcg.cpp,v 1.1
1 2008-03-04 15:16:28
claes Exp $
* Proview $Id: wb_gcg.cpp,v 1.1
2 2008-05-09 15:27:14
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -4648,16 +4648,12 @@ static int gcg_get_child_plcthread(
/* Check the scantime */
timebase
=
(
int
)((
*
scantime_ptr
)
*
1000
+
0.5
);
if
(
(
timebase
<=
0
)
||
(
IS_LYNX
(
os
)
&&
(((
timebase
/
10
)
*
10
)
!=
timebase
))
||
(
IS_LINUX
(
os
)
&&
0
/* (((timebase / 10) * 10) != timebase) */
)
||
(
IS_VMS_OR_ELN
(
os
)
&&
(((
timebase
/
10
)
*
10
)
!=
timebase
))
)
{
gcg_plc_msg
(
gcgctx
,
GSX__BADSCANTIME
,
objdid
);
if
(
(
IS_LINUX
(
os
)
&&
*
scantime_ptr
<
0.0000001
)
||
(
IS_LYNX
(
os
)
&&
((
timebase
<=
0
)
||
((
timebase
/
10
)
*
10
)
!=
timebase
))
||
(
IS_VMS_OR_ELN
(
os
)
&&
((
timebase
<=
0
)
||
((
timebase
/
10
)
*
10
)
!=
timebase
))
)
{
gcg_plc_msg
(
gcgctx
,
GSX__BADSCANTIME
,
objdid
);
}
else
{
else
{
/* Get the priority */
sts
=
ldh_GetObjectPar
(
gcgctx
->
ldhses
,
objdid
,
"RtBody"
,
...
...
@@ -5322,7 +5318,7 @@ int gcg_comp_rtnode(
timebase_ms
=
(
int
)((
timebase
+
i
)
->
scantime
*
1000
+
0.5
);
timebase_ptr
=
(
timebase
+
i
)
->
plclist
;
printf
(
"-- Plc thread generated priority %d, scantime %
7.3
f s, %d plcpgm's
\n
"
,
"-- Plc thread generated priority %d, scantime %
9.5
f s, %d plcpgm's
\n
"
,
(
timebase
+
i
)
->
prio
,
(
timebase
+
i
)
->
scantime
,
(
timebase
+
i
)
->
plc_count
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment