<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/modrssim2/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/modrssim2/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 10 Dec 2024 06:49:52 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/modrssim2/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Home modified by Doug Lyons</title><link>https://sourceforge.net/p/modrssim2/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v42
+++ v43
@@ -42,5 +42,8 @@
 Eventually I decided that I wanted to make my changes and improvements available to others.
 I created this SourceForge project to do that and continue to make updates as I find the need.

+This project has  been cloned on Github by Pavel Kostromitinov  and can be found here:
+https://github.com/Cavaler/ModRSsim2/
+
 [[members limit=20]]
 [[download_button]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Lyons</dc:creator><pubDate>Tue, 10 Dec 2024 06:49:52 -0000</pubDate><guid>https://sourceforge.net6d836fb9506388f474e680788cabcfa1423d5e23</guid></item><item><title>Home modified by Doug Lyons</title><link>https://sourceforge.net/p/modrssim2/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v41
+++ v42
@@ -1,6 +1,6 @@
-2024-Jan-27
+2024-Dec-09

-Version 8.21.2.8 is the current version.
+Version 8.21.2.9 is the current version.

 This project is a fork of mod_RSsim ([www.sourceforge.net/projects/modrssim](http://sourceforge.net/projects/modrssim)) which is also hosted on this site.
 I had run into this program a couple of times in the past, but I did not have time to try and learn a new program then.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Lyons</dc:creator><pubDate>Tue, 10 Dec 2024 02:16:08 -0000</pubDate><guid>https://sourceforge.netc7eb096c42a08ca74ad0ac89adf0b561dc0957fa</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/modrssim2/wiki/Home/?limit=25#d61b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Mr. Duarte,&lt;br/&gt;
Would you be willing to share your VBS code here so that it might benefit others? Thanks.&lt;br/&gt;
Doug Lyons&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Lyons</dc:creator><pubDate>Tue, 12 Nov 2024 21:37:52 -0000</pubDate><guid>https://sourceforge.net6c0123898bc84e45ca5cc524c137c4b2f761a983</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/modrssim2/wiki/Home/?limit=25#b44a</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Mr. Doug,&lt;/p&gt;
&lt;p&gt;Thank you very much for the feedback.&lt;/p&gt;
&lt;p&gt;I have explored a little bit more of the software and, following up on your sugestion, I was able to implement the Set/Get float32 in VBS.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">AMILCAR DUARTE</dc:creator><pubDate>Wed, 06 Nov 2024 11:09:02 -0000</pubDate><guid>https://sourceforge.netf1e5ed4633b8acd6761883cfa3d734fcdbb9c90d</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/modrssim2/wiki/Home/?limit=25#6a94</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Mr. Duarte,&lt;/p&gt;
&lt;p&gt;If you look at the 2nd row of selections near the top of the display, there is one that shows "Fmt:".&lt;br/&gt;
You can use the pull-down selection and set this to "float 32". This will allow you some options.&lt;br/&gt;
Because a 32-bit float takes two 16-bit registers, they can begin on either an even or odd address.&lt;br/&gt;
Since the system does not know which is intended, the display attempts to show both values.&lt;br/&gt;
So you have to decide whether to read/write to the even or odd address.&lt;br/&gt;
I see that you reference "SetRegisterValue" and "GetRegisterValue".&lt;br/&gt;
These functions do not support setting floating point registers at this time.&lt;br/&gt;
But since the source code is provided, it would be possible to extend it fairly easily to do this.&lt;br/&gt;
You could use REG_TYPE of 5 (which is not used) to indicate a 32-bit float number.&lt;br/&gt;
Now the programming would have to be extended to handle the details, but it could be done.&lt;br/&gt;
Otherwise, you would have to enter the 32-bit float as two Set/Get Register Values.&lt;br/&gt;
I hope that this helps. Good Luck. Doug Lyons&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Lyons</dc:creator><pubDate>Mon, 04 Nov 2024 03:50:52 -0000</pubDate><guid>https://sourceforge.netc31fa108b5d7575103f4bbc40220ecbad46ba8e0</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/modrssim2/wiki/Home/?limit=25#0ad2</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Mr. Doug,&lt;/p&gt;
&lt;p&gt;I am new to ModRSim2, and I have been trying to update IEEE32 floats using the scripts, with no luck so far.&lt;/p&gt;
&lt;p&gt;Using the SetRegisterValue and GetRegisterValue I can only manipulate one register at a time, and the float32 gets truncated.&lt;/p&gt;
&lt;p&gt;All the VBS solutions I have found for converting IEEE32 to two words or to four bytes, and vice-versa,  seem to use VB functions that are not accepted by the script compiler.&lt;/p&gt;
&lt;p&gt;Do you have any workaround for handling float32 in ModRSim2 ?&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">AMILCAR DUARTE</dc:creator><pubDate>Sat, 26 Oct 2024 18:57:23 -0000</pubDate><guid>https://sourceforge.neta790328a81aa41ee823f39168c831379b74915c1</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/modrssim2/wiki/Home/?limit=25#8cb4</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, Kali. The ModRSSim2 server takes its IP address from the computer that it is running on.&lt;br/&gt;
Therefore, it is possible by doing something similar to the following.&lt;br/&gt;
Install a Virtual Machine server such as Virtual Box or VMWare. Now install an operating system in two seperate instances. You can find a free version of ReactOS that is capable of running this at&lt;br/&gt;
&lt;a href="https://sourceforge.net/projects/reactos/files/ReactOS/0.4.15-ReleaseCandidates/."&gt;https://sourceforge.net/projects/reactos/files/ReactOS/0.4.15-ReleaseCandidates/.&lt;/a&gt;&lt;br/&gt;
Set these two machines to have dedicated IP addresses that correspond to the two IP address that you want to simulate. Good Luck. Doug Lyons&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Lyons</dc:creator><pubDate>Tue, 01 Oct 2024 20:52:10 -0000</pubDate><guid>https://sourceforge.net70d7258a15bce2a417107cbd0b631a234385424b</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/modrssim2/wiki/Home/?limit=25#2fdb</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi. Is it possible to run 2 instances of ModRSsim2 with to different IP?. I need to simulate 2 diferent IP both with the same ID.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kali</dc:creator><pubDate>Wed, 11 Sep 2024 13:48:41 -0000</pubDate><guid>https://sourceforge.net3dd9bc87795badd72a45f684d720d3e6c3b4eab5</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/modrssim2/wiki/Home/?limit=25#2f99</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;My task is to set the machine's clock to UTC using a PC connected by modbus.  Hundreds of these will be deployed across the country and beyond.  Requiring manual intervention by the end user is not an option.&lt;/p&gt;
&lt;p&gt;So, not at all knowing what I'm doing, I've been slogging around the swamp for a while, and I think I stumbled on the answer.  I ended up here:&lt;br/&gt;
&lt;a href="https://learn.microsoft.com/en-us/windows/win32/wmisdk/swbemdatetime" rel="nofollow"&gt;https://learn.microsoft.com/en-us/windows/win32/wmisdk/swbemdatetime&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Based on that, I came up with this, which appears to work:&lt;/p&gt;
&lt;p&gt;Set dateTime = CreateObject("WbemScripting.SWbemDateTime") 'create a date/time object&lt;br/&gt;
dateTime.SetVarDate(Now())                  'put the current time into the object&lt;br/&gt;
d = dateTime.GetVarDate (false)                 'the false value retreives UTC time&lt;/p&gt;
&lt;p&gt;SetRegisterValue 3, 1, DatePart("s", d)     'load seconds into modbus holding register at address 1&lt;br/&gt;
SetRegisterValue 3, 2, DatePart("n", d)     'minutes&lt;br/&gt;
SetRegisterValue 3, 3, DatePart("h", d)     'hours&lt;br/&gt;
SetRegisterValue 3, 4, DatePart("w", d)     'day of the week&lt;br/&gt;
SetRegisterValue 3, 5, DatePart("d", d)     'date (day of month)&lt;br/&gt;
SetRegisterValue 3, 6, DatePart("m", d)     'month&lt;br/&gt;
SetRegisterValue 3, 7, DatePart("yyyy", d)  'full year&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Don Burdette</dc:creator><pubDate>Tue, 26 Mar 2024 15:29:30 -0000</pubDate><guid>https://sourceforge.netd94031d3e67139e583e5ef7f8bbbe58653542b11</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/modrssim2/wiki/Home/?limit=25#661b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Don,&lt;/p&gt;
&lt;p&gt;It seems to me you should be able to just look up this key's value in the machine manually:&lt;/p&gt;
&lt;p&gt;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\Bias.&lt;/p&gt;
&lt;p&gt;Then just take this value (300 for Eastern Time) and plug it into the script as shown below.&lt;/p&gt;
&lt;p&gt;dim d&lt;/p&gt;
&lt;p&gt;d = DateAdd("n", 300, Now())&lt;/p&gt;
&lt;p&gt;SetRegisterValue 3, 1, DatePart("s", d)&lt;br/&gt;
SetRegisterValue 3, 2, DatePart("n", d)&lt;br/&gt;
SetRegisterValue 3, 3, DatePart("h", d)&lt;br/&gt;
SetRegisterValue 3, 4, DatePart("w", d)&lt;br/&gt;
SetRegisterValue 3, 5, DatePart("d", d)&lt;br/&gt;
SetRegisterValue 3, 6, DatePart("m", d)&lt;br/&gt;
SetRegisterValue 3, 7, DatePart("yyyy", d)&lt;/p&gt;
&lt;p&gt;Because "Now()" will be automatically updated for Daylight Time by default, this should work.&lt;br/&gt;
Note that you do not want the "ActiveTimeBias" because this changes for Standard Time and Daylight Time, so you would be double compensating if you used this dynamic value.&lt;br/&gt;
You should not need to even read the registry, just use the offset based on their Time Zone.&lt;/p&gt;
&lt;p&gt;Doug Lyons&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Doug Lyons</dc:creator><pubDate>Tue, 26 Mar 2024 00:27:57 -0000</pubDate><guid>https://sourceforge.netc2083f185e8408c13a507aea3d8b20fe767cb454</guid></item></channel></rss>