Redlion IsDeviceOnline()

moistcat

Member
Join Date
Jun 2020
Location
Melbourne
Posts
53
Redlion DSPSX001
Crimson 3.0

Im polling 3 modbus devices via RS232 serial plugged into redlion, and I want to create SCADA alarm upon communications fault. SCADA Polls the redlion via modbus TCP

From the gateway, i have assigned a tags to the function IsDeviceOnline(2), where 2,3,4 etc is the device index.

I then read these tags are then mapped to modbus registers read from SCADA.

When i unplug the device '2', the tag FF1BEKA001 stays true but pulses to false every 1s approx (for less then 250ms).

Does anyone have a better way of achieving what i'm after?

vmplayer_N6N3vj5Qzg.png vmplayer_LW363EK0rI.png
 
Not much help, but you seem to have done everything right, following this RedLion tech note:
https://support.redlion.net/hc/en-us/articles/7781952535693-Crimson-3-x-Detect-Comms-status-
What does the tag do if not mapped to Modbus registers? I always start simple and then add complexity if the simple stuff works.
edit: Thinking about it, can't you set the poll rate for a Modbus device. If you poll it quicker than it can respond then you would get bad connections, followed by a good connection, cyclically.
 
Last edited:
I was wandering if GETDEVICESTATUS() might tell you more about what is going on with the device at least to help trouble shoot it. Just a thought?
 

Similar Topics

Im currently building a file for a redlion Productvity unit "PTV". Pretty sweet device! I'm trying to setup a page to display comms failure and...
Replies
11
Views
3,093
Hi, I have a complex database in Crimson 3.0 and in one of the display pages I am trying to get a tag to show the sum of several other tags. The...
Replies
3
Views
137
Hi All, Hoping to get some insight into best way to terminate shielded twisted pair + common into a RJ45 required for RedLion RS485...
Replies
3
Views
186
I have 8 of these systems all running the same code. Just this one seem to gain about 30 seconds in time everyday. So in 48hrs time will be...
Replies
3
Views
639
Hello, can anyone help with what driver to use in Crimson to communicate Ethernet/IP to a Prosoft PLX31-EIP-MBS gateway. The gateway will pull...
Replies
6
Views
804
Back
Top Bottom