User Tools

Site Tools


Sidebar

Home



G-Code


About

  Order of execution
  Parameters

G-Codes

M-Codes

Other Codes

O-Words

Comments

Functions

  abs[]
  acos[]
  active[]
  and[]
  asin[]
  atan2[]
  atan[]
  bin[]
  ceil[]
  chr[]
  cos[]
  datetime[]
  day[]
  dec[]
  defnz[]
  def[]
  deg2rad[]
  exists[]
  exp10[]
  exp2[]
  expr[][]
  exp[]
  e[]
  fix[]
  floor[]
  froms16[]
  froms32[]
  fromu16[]
  fromu32[]
  fup[]
  hex[]
  hour[]
  inc[]
  land[]
  lnand[]
  lnor[]
  lnot[]
  log10[]
  log2[]
  log[]
  lor[]
  lxnor[]
  lxor[]
  max3[]
  max[]
  millisec[]
  min3[]
  minute[]
  min[]
  mmtounit[]
  month[]
  nand[]
  nan[]
  nop[][]
  nor[]
  notexists[]
  not[]
  or[]
  pi[]
  pow[]
  rad2deg[]
  rand[]
  rounddec[]
  roundup[]
  round[]
  s16[]
  s32[]
  s8[]
  second[]
  shl[]
  shr[]
  sin[]
  sqrt[]
  sqr[]
  tan[]
  tomachine[]
  tos16[]
  tos32[]
  tou16[]
  tou32[]
  towork[]
  trunc[]
  u16[]
  u32[]
  u8[]
  unittomm[]
  xnor[]
  xor[]
  year[]

Operators

Macros

gcode:functions:func-strappend

strappend

Appends string.

Returns new string length.

Syntax

strappend[param, s]

Parameters

param Parameter.
s String.
Return Value Length of new string.

Examples

#<str> = "PlanetCNC"
#<len> = strappend[#<str>, " Rocks"] 
(print,#<str>)  

Output: PlanetCNC Rocks


#<str> = "PlanetCNC"
#<str2> = " Rocks"
#<len> = strappend[#<str>, #<str2>] 
(print,#<str>)  

Output: PlanetCNC Rocks


#<posx> = "X: "
#<posy> = "Y: "
#<len> = strappend[#<posx>, #<_x>] 
#<len> = strappend[#<posy>, #<_y>] 
(print,#<posx>, #<posy>) 

Output: X: 12.34, Y: 45.78

See also

gcode/functions/func-strappend.txt · Last modified: 2024/04/05 20:16 by andrej

Page Tools