Data types

jcp

Member
Join Date
Feb 2010
Location
Multan
Posts
369
Hi friends;
i am confusing with GE funac. In rslogix we can define when create a tag style and data types.
In ge i want to declare constants and i am unable to understand the registers.
If i enter %r0001=11820
is it use only %R0001 or use %R0001 and R0002?
is the data types define any where? or system it self choose the how many register occupy to see the value?
If any one have example to use registers and documant about it in which explain with eaxples i am very thankful and pray for him.
Regards
 
Unlike Rockwell, GE does not define separate areas of memory for Integers, Double Integers, Floats, Timers, or Counters. Instead GE defines %R memory for all numeric data.

A %R address defines a 16-bit memory location. When you need to do calculations in double integer or floating point, the PLC will automatically use two consecutive %R locations, the one you implicitly define when you assign an address to the variable plus the next higher %R address.

When you define a variable as INT, that means the variable uses one %R address. When you define a variable as DINT or REAL, it uses two %R addresses. When you create a timer or counter, you automatically allocate three consecutive %R addresses.

i am confusing with GE funac.
Yes you are. The former GE partner in the joint venture is actually named "Fanuc", not "Funac". The joint venture with GE and Fanuc was ended in December 2009.
 
HI;
"When u define a variable as INT "
How can i define it?
Plz guide me. I know it is very basic but i do not know how to define in GE?
Regards
 
For an existing variable, look under properties for that variable. When you are creating a new variable you are given a choice. If you drop an instruction into ladder logic and then type in an address for which no variable already exists, the variable typr will be chosen based on the type of instruction you are applying it to. For example, if you are filling out a MUL_INT instruction, all new variables created for that instruction will automatically be INTs. If it a MUL_REAL instruction, all new variables will be REALs.

It is up to you as the programmer to be careful that you don't overlap register addresses when you create new varaibles. If there is already a DINT variable that uses %R101 and %R102, then don't create a new INT addressed to %R102.

As I have previously, I suggest you experiment on your bench system to familiarize yourself with the way GE handles these things. Deliberatly overlap addresses on the bench system so you can observe the behavior and be able to recognize similar symptoms on an actual system.
 

Similar Topics

I am using a Beckhoff PLC and trying to convert a REAL to 2 WORDS to send over Modbus. Does anyone know how to do this? Also how would I convert...
Replies
5
Views
744
Looking for information regarding what data types are supported in Crimson 3.1 programs. Cstring is self explanatory. Professor Google hasn't been...
Replies
1
Views
1,142
I'm currently working on a messaging system and Ive been having issues with trying to message over a REAL Data Type from one PLC to another. Has...
Replies
2
Views
1,258
I work at a cheese factory and we recently ran into a problem where in an older controller they where able to use a REAL Data type in OTU and XIC...
Replies
13
Views
2,402
I've got some minimal C code that I wrote some time ago to talk to Siemens PLCs. I used it with a 1200. At the time I only hit I, M, and Q...
Replies
5
Views
1,806
Back
Top Bottom