Forum Replies Created
-
AuthorPosts
-
rapidscadaaks
ParticipantHi
I have a Waveshare Modbus RTU(D) Relay with has 8 channels each of Digital Inputs and Outputs.
I am able to use to digital outputs using commands and also check their status.I am however not able to read status of Digital Inputs. Waveshare manual gives following parameters for reading input status:
Modbus Function Code 0x02
Address (HEX) 1×0000 …… 1×0007 for the 8 channelsI have tried various combinations and have not succeeded
I will be grateful for assistance
rapidscadaaks
ParticipantMany thanks. This works
rapidscadaaks
ParticipantHi Mikhail
Please let me know what Command should be sent by the ACM.
Thanks once again
rapidscadaaks
ParticipantHi
Please guide for Option 2 for resetting Channel 1437 which is a Calculated Channel since I already have the additional module.
In the ACM, I can create a Time Trigger but need help for further steps i.e.
1. Do I need to make a new Input/Output Channel 1438 which has ResetChannels(1437) in Output Formula? All other fields i.e. Device, Tag, etc. will be empty
2. In the ACM what command to send to 1438?
Please do pardon me for my basic questions as this is quite new to me.
Looking forward to expeditious help.
Thanks
rapidscadaaks
ParticipantHi Mikhail
Many thanks for the solution. I have applied the solution as suggested and as of now it is working.
Please advise how to reset the value of Channel 103 to 0 everyday at say 6am or any other system time.
Thanks once again
rapidscadaaks
ParticipantHi,
Thanks for your reply. I could definitely try this out; please let me know how to go about configuring Channel 102 to increase by 1 every minute if value is 1. Kindly also advise how to reset Channel 102 everyday to zero.Many Thanks
rapidscadaaks
ParticipantHi Mikhail
Many thanks for the input. now it works.
Best
rapidscadaaks
ParticipantHi Mikhail
Thanks for the input. There are couple of issues in the suggested solution:
1. By using the Time Trigger, I can start a series of commands at a particular time of the day. Where do I set the seconds for running a particular command?
2. The cycle has to repeat after every x minutes. Where can I set this?
Thanks
rapidscadaaks
ParticipantHello Manjey
1. By resources I mean using 3 Digital Outputs. There is no issue otherwise in using the ACM
2. Please elaborate on the second para of your response (my apologies as I am new)
Thanks
rapidscadaaks
ParticipantHi Mikhail
I am using GetAnyBits below:
public double GetAnyBits(double val, int n, int mask = 1)
{
ulong ulVal = (ulong)val;
return (ulVal >> n) & (ulong)mask;
}The issue is of format.
When I use Hexadecimal, vales are same as General with addition of 3 places of decimal which are zeros. I could not understand how to try the B Format as there is no option for B. I am using version 6.Thanks
rapidscadaaks
ParticipantMany Thanks
rapidscadaaks
ParticipantMany Thanks for all your help
rapidscadaaks
Participantyes please. I need to see it is 10 i.e. in bit representation
Thanks
rapidscadaaks
ParticipantHi Manjey
Many thanks. I have understood.
Now there is only a small issue and request for your input.
The value which i am getting after the formula is in decimal eg 01 is shown as 1; 10 is coming as 2. Please suggest weak in the script so that I get the output as 01 or 10.Thanks
rapidscadaaks
ParticipantHi Manjey
Thanks.
As per manual of the device, Register 1080 size is 2 therefore has 16 bits and I need to read the (bit 3, bit 4 and bit 5), (bit 6 and bit 7) and so on.
I am however not clear of the (XXX) and 7 in the syntax you provided.
I also request you for Syntax for the examples above
Please help
Thanks in advance
-
AuthorPosts