Tag Address Translator Syntax
10 min
when using the tag address translation docid\ zw6smucz3prv3hzw4uwyl functionality, users can provide a common string expression of a tag address which are typically use by the tools used to program the plc such as siemens tia portal or pcwin currently the tool supports tag address translation for these drivers siemens s7 all modbus drivers toyopuc ethernet supported tag address string formats siemens s7 supported register types syntax i i\<datatype>\<address> q q\<datatype>\<address> m m\<datatype>\<address> db db\<db number> \<datatype>\<address> siemens addressing syntax data typ syntax (\<datatype>\<address>) data type b byte b0 b65535 byte0 byte65535 byte ,char,sint c char c0 c65535 char0 char65535 char ,byte d dword d0 d65532 dword0 dword65532 dword ,dint,real di dint di0 di65532 dint0 dint65532 dword ,dint,real i int i0 i65534 int0 int65534 sint ,word r real r0 r65532 real0 real65532 real t time t0 t65532 time0 time65532 time w word w0 w65534 word0 word65534 word ,int,uint x x0 b x65534 b b is bit number 0 7 bit s string s0 n s65532 n string0 n string65532 n n is string length string data types in bold are the default data type modbus primary table description 0 output coils 1 input coils 3 internal registers 4 holding registers modbus addressing in decimal format address type range data type output coils '000001 '065536 bit input coils 100001 165536 bit internal registers 300001 365536 300001 b 365536 b b is bit number 1 15 word ,int16,int32,int64,uint64, float32,float64,string bit holding registers 400001 465536 400001 b 465536 b b is bit number 1 15 word ,int16,int32,int64,uint64, float32,float64,string bit because excel doesn't resepct leading "0" for a number value, output coils need to include a leading "'" (apostrophe) when using the decimal format example will not work 065536 will work '065536 modbus addressing in alternative format address type range data type output coils hc1 hc65536 bit input coils ic1 ic65536 bit internal registers ir1 ir65536 ir1 b ir65536 b b is bit number 1 15 word ,int16,int32,int64,uint64, float32,float64,string bit holding registers hr1 hr65536 hr1 b hr65536 b b is bit number 1 15 word ,int16,int32,int64,uint64, float32,float64,string bit modbus addressing enron modbus specific address type range data type 1x 100 700 800 999 bool 3x 3001 3999 int16 5x 5001 5999 int32 ,string 7x 7001 65536 float32 archive 701 799 bit ,json data types in bold are the default data type toyopuc ethernet memory type family memory type members syntax common ep, ek, ev, et, ec, el, ex, ey, em, es, en, h, gx, gy, u, eb, gm, b, fr \<memory type>\<address> p1 x, y, m, k, l, v, t, c, s, n, d, r, p p1 \<memory type>\<address> p2 x, y, m, k, l, v, t, c, s, n, d, r, p p2 \<memory type>\<address> p3 x, y, m, k, l, v, t, c, s, n, d, r, p p3 \<memory type>\<address> toyopuc memory type syntax (\<memory type>\<address>) data type specific relay (v) v00 vff v0 vf v0 n# ve n# n is string length 1 1023 # is byteorder "l" or "h" v0# vfo# \# is byteorder "l" or "h" v0w vfw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 edge relay (p) p000 p1ff p00 p1f p00 n# p1e n# n is string length 1 1023 # is byteorder "l" or "h" p00# p1f# \# is byteorder "l" or "h" p00w p1fw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 i/o relay (x) x000 x7ff x00 x7f x00 n# x7e n# n is string length 1 1023 # is byteorder "l" or "h" x00# x7f# \# is byteorder "l" or "h" x00w x7fw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 i/o relay (y) y000 y7ff y00 y7f y00 n# y7e n# n is string length 1 1023 # is byteorder "l" or "h" y00# y7f# \# is byteorder "l" or "h" y00w y7fw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 internal relay (m) m000 m7ff m00 m7f m00 n# m7e n# n is string length 1 1023 # is byteorder "l" or "h" m00# m7f# \# is byteorder "l" or "h" m00w m7fw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 keeping relay (k) k000 k7ff k00 k7f k00 n# k7e n# n is string length 1 1023 # is byteorder "l" or "h" k00# k7f# \# is byteorder "l" or "h" k00w k7fw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 link relay (l) l000 l7ff l00 l7f l00 n# l7e n# n is string length 1 1023 # is byteorder "l" or "h" l00# l7f# \# is byteorder "l" or "h" l00w l7fw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 timer bits (t) t000 t7ff t00 t7f t00 n# t7e n# n is string length 1 1023 # is byteorder "l" or "h" t00# t7f# \# is byteorder "l" or "h" t00w t7fw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 count bits (c) c000 c7ff c00 c7f c00 n# c7e n# n is string length 1 1023 # is byteorder "l" or "h" c00# c7f# \# is byteorder "l" or "h" c00w c7fw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 present value register (n) n000 0 n1ff f n000 n1ff n000 n# n1fe n# n is string length 1 1023 # is byteorder "l" or "h" n000# n1ff# \# is byteorder "l" or "h" n000w n1ffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 specific register (s) s000 0 s3ff f s000 s3ff s000 n# s3fe n# n is string length 1 1023 # is byteorder "l" or "h" s000# s3ff# \# is byteorder "l" or "h" s000w s3ffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 link register (r) r000 0 r7ff f r000 r7ff r000 n# r7fe n# n is string length 1 1023 # is byteorder "l" or "h" r000# r7ff# \# is byteorder "l" or "h" r000w r7ffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 data register (d) d0000 0 d2fff f d0000 d2fff d0000 n# d2ffe n# n is string length 1 1023 # is byteorder "l" or "h" d0000# d2fff# \# is byteorder "l" or "h" d0000w d2fffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 extended setup value register (h) h0000 h7fff h000 h7ff h000 n# h7fe n# n is string length 1 1023 # is byteorder "l" or "h" h000# h7ff# \# is byteorder "l" or "h" h000w h7ffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 extended i/o relay (ex) ex000 ex7ff ex00 ex7f ex00 n# ex7e n# n is string length 1 1023 # is byteorder "l" or "h" ex00# ex7f# \# is byteorder "l" or "h" ex00w ex7fw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 extended i/o relay (ey) ey000 ey7ff ey00 ey7f ey00 n# ey7e n# n is string length 1 1023 # is byteorder "l" or "h" ey00# ey7f# \# is byteorder "l" or "h" ey00w ey7fw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 extended counter bits (ec) ec000 ec7ff ec00 ec7f ec00 n# ec7e n# n is string length 1 1023 # is byteorder "l" or "h" ec00# ec7f# \# is byteorder "l" or "h" ec00w ec7fw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 extended keep relay (ek) ek000 ekfff ek00 ekff ek00 n# ekfe n# n is string length 1 1023 # is byteorder "l" or "h" ek00# ekff# \# is byteorder "l" or "h" ek00w ekffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 extended edge direction (ep) ep000 epfff ep00 epff ep00 n# epfe n# n is string length 1 1023 # is byteorder "l" or "h" ep00# epff# \# is byteorder "l" or "h" ep00w epffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 extended link relay (el) el0000 el1fff el000 el1ff el000 n# el1fe n# n is string length 1 1023 # is byteorder "l" or "h" el000# el1ff# \# is byteorder "l" or "h" el000w el1ffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 extended internal relay (em) em0000 em3fff em000 em3ff em000 n# em3fe n# n is string length 1 1023 # is byteorder "l" or "h" em000# em3ff# \# is byteorder "l" or "h" em000w em3ffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 extended special relay (ev) ev0000 ev3fff ev000 ev3ff ev000 n# ev3fe n# n is string length 1 1023 # is byteorder "l" or "h" ev000# ev3ff# \# is byteorder "l" or "h" ev000w ev3ffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 extended timer/counter value (en) en0000 en7fff en000 en7ff en000 n# en7fe n# n is string length 1 1023 # is byteorder "l" or "h" en000# en7ff# \# is byteorder "l" or "h" en000w en7ffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 extended special register (es) es0000 es7fff es000 es7ff es000 n# es7fe n# n is string length 1 1023 # is byteorder "l" or "h" es000# es7ff# \# is byteorder "l" or "h" es000w es7ffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 extended input relay (gx) gx0000 gxffff gx000 gxfff gx000 n# gxffe n# n is string length 1 1023 # is byteorder "l" or "h" gx000# gxfff# \# is byteorder "l" or "h" gx000w gxfffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 extended output relay (gy) gy0000 gyffff gy000 gyfff gy000 n# gyffe n# n is string length 1 1023 # is byteorder "l" or "h" gy000# gyfff# \# is byteorder "l" or "h" gy000w gyfffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 extended internal relay (gm) gm0000 gmffff gm000 gmfff gm000 n# gmffe n# n is string length 1 1023 # is byteorder "l" or "h" gm000# gmfff# \# is byteorder "l" or "h" gm000w gmfffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 file register (b) b00000 b1ffff b0000 b1fff b0000 n# b1ffe n# n is string length 1 1023 # is byteorder "l" or "h" b0000# b1fff# \# is byteorder "l" or "h" b0000w b1fffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 extended data register (u) u00000 0 u1ffff f u00000 u1ffff u00000 n# u1fffe n# n is string length 1 1023 # is byteorder "l" or "h" u00000# u1ffff# \# is byteorder "l" or "h" u00000w u1ffffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 extended flash register (fr) fr000000 0 fr1fffff f fr000000 fr1fffff fr000000 n# fr1ffffe n# n is string length 1 1023 # is byteorder "l" or "h" fr000000# fr1fffff# \# is byteorder "l" or "h" fr000000w fr1fffffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 extended buffer register (eb) eb00000 0 eb3ffff f eb00000 eb3ffff eb00000 n# eb3fffe n# n is string length 1 1023 # is byteorder "l" or "h" eb00000# eb3ffff# \# is byteorder "l" or "h" eb00000w eb3ffffw w is special identifier for uint16 bit uint16 ,uint32,uint64,int16,int32,int64,float32,float64 string uint8 uint16 data types in bold are the default data type