Commit 37f81795 authored by Ivan Tyagov's avatar Ivan Tyagov

Set interval to default of 20ms.

parent 7a828f44
...@@ -27,4 +27,4 @@ ...@@ -27,4 +27,4 @@
// Ticktime // Ticktime
30000000 20000000
...@@ -42,5 +42,5 @@ void RESOURCE1_run__(unsigned long tick); ...@@ -42,5 +42,5 @@ void RESOURCE1_run__(unsigned long tick);
void config_run__(unsigned long tick) { void config_run__(unsigned long tick) {
RESOURCE1_run__(tick); RESOURCE1_run__(tick);
} }
unsigned long long common_ticktime__ = 30000000ULL * 1ULL; /*ns*/ unsigned long long common_ticktime__ = 20000000ULL * 1ULL; /*ns*/
unsigned long greatest_tick_count__ = (unsigned long)0UL; /*tick*/ unsigned long greatest_tick_count__ = (unsigned long)0UL; /*tick*/
...@@ -74,7 +74,7 @@ CONFIGURATION config ...@@ -74,7 +74,7 @@ CONFIGURATION config
END_VAR END_VAR
RESOURCE resource1 ON PLC RESOURCE resource1 ON PLC
TASK task0(INTERVAL := T#30ms,PRIORITY := 0); TASK task0(INTERVAL := T#20ms,PRIORITY := 0);
PROGRAM instance0 WITH task0 : plc_prg; PROGRAM instance0 WITH task0 : plc_prg;
END_RESOURCE END_RESOURCE
END_CONFIGURATION END_CONFIGURATION
5c767212bd9f45b1bff8365ee7aa5c48 6144dfafd181ce04ff6374e450b5c333
\ No newline at end of file \ No newline at end of file
...@@ -168,7 +168,7 @@ CONFIGURATION config ...@@ -168,7 +168,7 @@ CONFIGURATION config
END_VAR END_VAR
RESOURCE resource1 ON PLC RESOURCE resource1 ON PLC
TASK task0(INTERVAL := T#30ms,PRIORITY := 0); TASK task0(INTERVAL := T#20ms,PRIORITY := 0);
PROGRAM instance0 WITH task0 : plc_prg; PROGRAM instance0 WITH task0 : plc_prg;
END_RESOURCE END_RESOURCE
END_CONFIGURATION END_CONFIGURATION
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<project xmlns:ns1="http://www.plcopen.org/xml/tc6_0201" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.plcopen.org/xml/tc6_0201"> <project xmlns:ns1="http://www.plcopen.org/xml/tc6_0201" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.plcopen.org/xml/tc6_0201">
<fileHeader companyName="Unknown" productName="Unnamed" productVersion="1" creationDateTime="2021-05-14T14:33:11"/> <fileHeader companyName="Unknown" productName="Unnamed" productVersion="1" creationDateTime="2021-05-14T14:33:11"/>
<contentHeader name="Counter (OSIE)" modificationDateTime="2021-10-22T13:55:18"> <contentHeader name="Counter (OSIE)" modificationDateTime="2021-10-22T15:02:46">
<coordinateInfo> <coordinateInfo>
<fbd> <fbd>
<scaling x="0" y="0"/> <scaling x="0" y="0"/>
...@@ -213,7 +213,7 @@ Out0 := Cnt0;]]></xhtml:p> ...@@ -213,7 +213,7 @@ Out0 := Cnt0;]]></xhtml:p>
<configurations> <configurations>
<configuration name="config"> <configuration name="config">
<resource name="resource1"> <resource name="resource1">
<task name="task0" priority="0" interval="T#30ms"> <task name="task0" priority="0" interval="T#20ms">
<pouInstance name="instance0" typeName="plc_prg"/> <pouInstance name="instance0" typeName="plc_prg"/>
</task> </task>
</resource> </resource>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment