S7 1214 & Redlion - Register value on start up not being seen

UKAi

Member
Join Date
Feb 2022
Location
UK
Posts
22
Hello
I have a siemens 1500 connected to a redlion DA30

I use the redlion to write an operator entered number (retained) to a register in the PLC

operator entry
Untitled.png


tag
Screenshot-2022-02-21-123017.png


when I start the machine up the redlion has a value, but the PLC does not .. any ideas

redlion on start up
Untitled1.png


plc on start up
Untitled2.png



After a start up, IF I enter a new value in the redlion, the PLC updates and shows the value.

my first thought is on start up of the redlion to (+1) to the register wait for a few seconds and then (-1) from it,

Has this happened to anyone else?

Thanks
 
Last edited:
What data type is a red-lion LONG exactly ?
A 'Long' is usually a 64-bit data type in many programming languages.
edit: In Java, a long is a 64-bit data type, in C it is a 32-bit data type.
edit edit: And in S7-1500 an LINT is a 64-bit data type, i.e. a "long integer".

DB7.DBD38 in the S7-1200 is 32-bit double-integer.

edit edit edit: Not sure if S7-1200 supports Long data types. S7-1500 does.
My guess is that you have to change the data type in the red lion software to a double integer.
 
Last edited:
thanks Jesper will have a look at the data type - I am in fact using a 1500 series on this job
LD - the block is not optimised, PUT/GET is enabled

- the values display correctly in the PLC once the red lion value is changed following start up - its more like the PLC cant read the redlions retained value, until it is changed
 
The S7-1500 is not reading from the red-lion.
The red lion is sending values from the to the S7-1500 upon data entry on the screen.
That is what you are seeing.
If you need data to be retentive, they should be in the PLC.

Apart from recipes, I have never heard of retentive data residing in an HMI.
 
Thanks for clearing that up,
Is there a way I can make the redlion send it's retained value on start up? Or at least without having to change it?
 
Okay guys my bad.
I had the tag set with security access. Doh.
Removed this and now the retained value in the HMI is written to the plc on start.
Doh.
Thanks for the quick replies
 
Hi Rob,

yea, that option for me is greyed out as the tags are not defined as an array,
(see my first post 2nd image)
 
Okay guys my bad.
I had the tag set with security access. Doh.
Removed this and now the retained value in the HMI is written to the plc on start.
Doh.
Thanks for the quick replies

two-states-of-every-programmer-i-am-god-i-have-no-idea-what-im-doing.jpg
 

Similar Topics

I'm a beginner at this, I have points with x y z coordinates that I want to record on s7-1214 and use to move the axes for those points. How can I...
Replies
0
Views
9
Hi there, I am trying to communicate between Siemens 1214 that I have and a Micrologix 1400 on the other end through CIP protocol. I downloaded...
Replies
4
Views
2,059
Good day I have a Siemens 1214c DC/DC/DC and i have created a program, i have activated the web server access in the properties of the plc. I...
Replies
1
Views
1,078
hi i want to know that do can use s7-1200(cpu-1214) for the following specifications: 45 DI 30 DO 20 AI 1 port ethernet
Replies
1
Views
1,526
How to stop error led of siemens plc 1214.
Replies
3
Views
2,066
Back
Top Bottom