347
8-9 Application notes
In one Func Block file, you can write many functions, and they can be called by each
other.
Each Func Block file is independent, the function in other function block cannot be
called.
Func Block files can call C language library function in form of floating, arithmetic
like sin, cos, tan.
XC series PLC only support local variable, while XD/XL series PLC support both
local and global variable. This makes C language Block more flexible and convenient.
Recommended usage of global variables:
①
Use the soft component area instead of ordinary memory to store the data of global
variables.
The soft component space of PLC can be used as the global variable space, and the
security is guaranteed.
②
Usage example
tudonghoatoancau.com