Index: trunk/src_plugins/export_openems/export_openems.c =================================================================== --- trunk/src_plugins/export_openems/export_openems.c (revision 15457) +++ trunk/src_plugins/export_openems/export_openems.c (revision 15458) @@ -526,7 +526,7 @@ fprintf(ctx->f, "];\n"); fprintf(ctx->f, "mesh.x = mesh.x .+ offset.x;\n"); - fprintf(ctx->f, "mesh.y = mesh.y .+ offset.y;\n"); + fprintf(ctx->f, "mesh.y = offset.y .- mesh.y;\n"); fprintf(ctx->f, "mesh.z = mesh.z .+ offset.z;\n"); fprintf(ctx->f, "CSX = DefineRectGrid(CSX, unit, mesh);\n"); fprintf(ctx->f, "\n");